问题描述
我想将 NonNull 添加到连接中的节点和边。
class TestSchema(sqlAlchemyObjectType):
class Meta:
model = Test
interfaces = (relay.Node,)
id = graphene.ID(required=True)
当我在 Graphql playground 中查看文档浏览器时,
在 TestSchemaConnection 中
edges: [TestSchemaEdge]!
在 TestSchemaEdge 中
node: TestSchema
但我想要“!”括号内不能为空,如下所示。
edges: [TestSchemaEdge!]!
node: TestSchema!
有没有办法做到这一点?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)