Skip to content
Advertisement

unknown directive “@isAuthenticated”. Using Neo4j and Graphql

I’m trying to do something like this :

JavaScript

but when I do that in my graphql.schema :

JavaScript

I get this error :

JavaScript

how am I supposed to add the directives?

Advertisement

Answer

The right way to do that with Neo4jGraphql was :

JavaScript

see this doc for more informations : https://neo4j.com/docs/graphql-manual/current/auth/

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement