我从用户模型创建了2个objectTypes: class UserType(DjangoObjectType):
model = get_user_model() 和 class TopRankedUsersType(DjangoObjectType): replies_count = graphene.Int()
model = get_user_model()
only_fie
我是Django & GraphQL的初学者,我在第一步就遇到了一个问题,我无法到达GraphiQL,我有一个错误AttributeError: module 'graphene' has no attribute 'Heroes'.import graphene
from graphene_django imp
我使用的是继电器和姜戈-石墨烯版本2。Country.js正在渲染一个国家/地区列表。使用片段我得到这个错误: Warning: RelayModernSelector:期望对象包含片段Country_country的数据,得到{"node":{"__fragments":{"Country_countryfragment Country_country on CountryType @relay(plural: true) { name