cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

New Neo4jGraphQL({ typeDefs, driver }) causes Unknown directive error

Error: Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".
13:42:38 api |
13:42:38 api | Unknown directive "@relation".

This is on a fresh GRANDstack project, where the schema has been inferred from the database.

1 REPLY 1

William_Lyon
Graph Fellow

@relation should now be @relationship instead of @relation: Directives - Neo4j GraphQL Library

How did you infer the schema? Was it using the grandstack CLI?