-
Code : `import logging import azure.functions as func type_defs = ''' type RiskDomain { type Post { type Query { ListCVE_Posts(user_name: String, index_name: String): [Post] @cypher( resolvers = { entry point to GraphQL service'Query': { schema = make_executable_schema(type_defs, resolvers) import neo4j driver = None def context(request):
rootValue = {} from azf_wsgi import AzureFunctionsWsgi def main(req: func.HttpRequest) -> func.HttpResponse: Error : `Exception: TypeError: Unknown directive 'cypher'. Unknown directive 'cypher'. Unknown directive 'cypher'. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to declare the directive in your schema before you will be able to use it on your types: |
Beta Was this translation helpful? Give feedback.
You need to declare the directive in your schema before you will be able to use it on your types:
Defining schema directives