如何使用 GraphQL 处理 Big Int?

问题描述 投票:0回答:1

我有一个 BigInt 类型的 Django 模型字段,我如何在 graphql 模式中映射它,有没有像 Graphql 中的

BigInt
类型这样可用的东西?
我正在使用

graphene

库仅供参考 我的架构:

Int

我在 IDE 中收到以下警告/错误

type MyModelObject { complaintId: BigInt createdBy: User! complaintNumber: String! }


graphql graphene-python
1个回答
0
投票

The field type 'BigInt' is not present when resolving type 'MyModelObject'

查看
石墨烯文档

了解更多信息。

© www.soinside.com 2019 - 2024. All rights reserved.