GraphQL Community Graph
A few examples of using the GraphQL Community Graph from Neo4j.
With Multiple Bindings
Local Schema
const typeDefs = `
type Technology @model {
name: String! @unique
integration: [Technology] @relation(
name: "HAPPINESS",
direction: OUT
)
}
`;Remote Schema
const twitterTypeDefs = `
type Link @model {
url: ID!
}
type TwitterUser @model {
id: ID!
screen_name: String!
name: String
location: String
followers: Int
following: Int
statuses: Int
profile_image_url: String
posted: [Tweet] @relation(name:"POSTED", direction:"OUT")
}
type Tweet @model {
id: ID!
text: String
created: Int
favorites: Int
postedBy: TwitterUser @relation(name:"POSTED", direction:"IN")
mentioned: [TwitterUser] @relation(name:"MENTIONED", direction:"OUT")
reply: Tweet @relation(name:"REPLIED_TO", direction:"OUT")
retweeted: Tweet @relation(name:"RETWEETED", direction:"OUT")
links: [Link] @relation(name:"LINKED", direction:"OUT")
tags: [Tag] @relation(name:"TAGGED", direction:"OUT")
}
type Tag @model {
name: ID!
tagged: [Tweet] @relation(name:"TAGGED", direction:"IN")
}
`;Server Setup

Remote Query
With neo4j-graphql-js
Server Setup
Last updated