【发布时间】:2022-11-14 13:53:37
【问题描述】:
我有以下GraphQLTestCase
def test_create_foo(self):
response = self.query(
"""
mutation createFoo($input: MutationInput!) {
createFoo(input: $input) {
foo {
id
title
}
}
}
""",
op_name="createFoo",
input_data={"title": "Title Test"},
)
当我运行时,我得到了错误:
响应 = self.query( TypeError:query() 得到了一个意外的关键字参数“op_name”
我在用:
- 石墨烯3.1.1
- 石墨烯-django 3.0.0
可以是什么?
【问题讨论】:
标签: python django graphene-python