私はdjangoに顧客モデルを持っています。
#models.py
class Customer(models.Model):
name = models.CharField(max_length=500, blank=True, null=True)
mobile = models.BigIntegerField(blank=True,null=True)
recent_visit_time = models.DateField(auto_now=True)
#forms.py
class CustomerForm(ModelForm):
class Meta:
model = Customer
fields = ['name','mobile']
#mutations.py
class CustomerMutation(DjangoModelFormMutation):
class Meta:
form_class = CustomerForm
ModelForm
グラフェンとジャンゴの突然変異を作成するために使用しています。管理パネルから携帯電話番号を追加することはできますが、ミューテーションを介して追加することはできません。10 桁の数字を追加したいのですが、GraphQL では 9 桁の数字しか追加できません。
次のエラーが表示されます:
{
"errors": [
{
"message": "Int cannot represent non 32-bit signed integer value: 88776655433"
}
],
"data": {
"customer": [
{
"id": "2",
"mobile": null,
"name": "Harsh Behl"
}
]
}
}