Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django graphene without model

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #graphene #model
ADD COMMENT
Topic
Name
4+9 =