Skip to content

Instantly share code, notes, and snippets.

@danstarns
Created April 10, 2022 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danstarns/bc5261c9ef1e5d0396ca1885032f678d to your computer and use it in GitHub Desktop.
Save danstarns/bc5261c9ef1e5d0396ca1885032f678d to your computer and use it in GitHub Desktop.
movies-gql
type Movie {
title: String!
actors: [Person] @relationship(type: "ACTED_IN", direction: IN)
genres: [Genre] @relationship(type: "In_GENRE", direction: OUT)
}
type Person {
name: String!
movies: [Movie] @relationship(type: "ACTED_IN", direction: OUT)
}
type Genre {
name: String!
}
@StephanMeijer
Copy link

Typo on line 4, type: "In_GENRE" instead of type: "IN_GENRE".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment