Skip to content

sstruct/build-a-graphql-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build-a-graphql-server

notes for https://egghead.io/courses/build-a-graphql-server

Create a GraphQL Schema

# init project
yarn init -y

# l is short for ls -a
l

Serve a GraphQL Schema as Middleware in Express

# 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)
#

06 Write a GraphQL Schema in JavaScript

remove the rootValue❓

GraphQLSchema 内部究竟发生了什么呢?

server.use(
  "/graphql",
  graphqlHTTP({
    schema,
    graphiql: true
  })
);

Releases

No releases published

Packages

No packages published