npm install
PORT=
NEO4J_HTTP_HOST=
NEO4J_URI=bolt://
NEO4J_USER=
NEO4J_PASSWORD=
HTTP_PROXY_AGENT_URL=http://
npm start
http://localhost:3000/graphiql
http://localhost:3000/public/docs
{
findBeer(filter: {name: "coro"}, first: 5) {
beerName
abv
description
picture
rating {
avg
rating
}
brewery {
breweryName
address1
city
state
zipCode
country
phoneNumber
website
description
geocode {
latitude
longitude
}
}
category {
categoryName
}
style {
styleName
}
}
}
{
findBeerer(filter: {id: 1}, first: 5) {
beererName
rated(first: 5) {
beer {
beerName
}
rate {
rating
}
}
checked(first: 5) {
beer {
beerName
}
check {
location
}
}
friends(first: 5) {
friend {
beererName
}
friendship {
since
}
}
}
}
mutation {
rate(input: {me: 1, beerID: 11, rating: 1, comment: ""})
}
mutation {
check(input: {me: 1, beerID: 11, location: "Vineuil, FR", price: 4.5})
}
mutation {
addFriend(input: {me: 1, friendID: 3})
}
apollo-codegen introspect-schema schema/schema.graphql
graphqlviz schema/schema.graphql -g | dot -Tpng -o graph.png
graphdoc -f -s schema.json -o public/docs