notes for https://egghead.io/courses/build-a-graphql-server
# init project
yarn init -y
# l is short for ls -a
l# Keyboard shortcuts:
#
# Prettify Query: Shift-Ctrl-P (or press the prettify button above)
#
# Run Query: Ctrl-Enter (or press the play button above)
#
# Auto Complete: Ctrl-Space (or just start typing)
#remove the rootValue❓
GraphQLSchema 内部究竟发生了什么呢?
server.use(
"/graphql",
graphqlHTTP({
schema,
graphiql: true
})
);