I've an Django Model field with BigInt type, How can i map this in graphql schema, is there anything available like BigInt like Int type in Graphql?
I'm using graphene library FYI
My Schema:
type MyModelObject {
complaintId: BigInt
createdBy: User!
complaintNumber: String!
}
I got below warning/error in IDE
The field type 'BigInt' is not present when resolving type 'MyModelObject'
There is no built-in support for this, AFAIK. But the GraphQL custom scalars are designed for this kind of requirement. You can use Graphene Custom scalars to define a new scalar type for BigInt.
Check the Graphene documentation for more information.