Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-11-2021 02:47 AM
Following the steps for a fresh install
yarn create grandstack-app myNewApp
neo4j desktop create database, install apoc.
upon running yarn run start
the SPA loads up on port 3000 but the graphql server doesn't succeed
and it throws the error
GraphQLError [Object]: Argument "direction" has invalid value "OUT".
Solved! Go to Solution.
01-11-2021 01:34 PM
I ran into this same issue.
You might have the updated version of neo4j-graphql.js. Remove the "" from OUT and see if that works!
01-11-2021 01:34 PM
I ran into this same issue.
You might have the updated version of neo4j-graphql.js. Remove the "" from OUT and see if that works!
07-12-2021 06:46 AM
Tnx, it works...aaakheysh.
01-12-2021 11:48 PM
Thanks you. That fixed the issue.
03-01-2021 02:46 AM
I found this here after several hours of searching...
Ran into the same issue.
Removing "" for "IN" AND "OUT" fixed it.
Problem is that the docs still show examples with "IN" AND "OUT" etc.
I think this should be immediately fixed.
NOT WORKING
const typeDefs = `
type Movie {
title: String
year: Int
imdbRating: Float
genres: [Genre] @relation(name: "IN_GENRE", direction: "OUT")
}
type Genre {
name: String
movies: [Movie] @relation(name: "IN_GENRE", direction: "IN")
}
`;
WORKING
const typeDefs = `
type Movie {
title: String
year: Int
imdbRating: Float
genres: [Genre] @relation(name: "IN_GENRE", direction: OUT)
}
type Genre {
name: String
movies: [Movie] @relation(name: "IN_GENRE", direction: IN)
}
`;
and btw. Why the change in the first place? and WTF?
All the sessions of the conference are now available online