Skip to content

Instantly share code, notes, and snippets.

neo4j-graphql-auth-example-type-defs
type User {
id: ID! @id
name: String!
}
type Post {
content: String!
creator: User! @relationship(type: "POSTED", direction: IN)
comments: [Comment]! @relationship(type: "HAS_COMMENT", direction: OUT)
}
type Comment {
content: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment