📜  没有模型的 django 石墨烯 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:32.282000             🧑  作者: Mango

代码示例1
class Query(graphene.ObjectType):

    searcher = graphene.JSONString(name=graphene.JSONString(default_value='{"first": 100}'))

    def resolve_searcher(self, type, passed_json):
        some_result = do_some_with_json(passed_json)
        return some_result