- cd backend
- yarn
- yarn start
and play with es6 node server
- http://localhost:9000/graphql - endpoint of GraphQL server
- http://localhost:9000/graphql-explorer - GraphQL Explorer
classic create-react-app base
- cd frontend
- yarn
- yarn start
-
Backend schema
- Create Basic schema with Query and resolvers.
- Then run http://localhost:9000/graphql-explorer
- Helpful tutorial
type Channel {
id: ID!
name: String
}
-
Connect Client
- Create componnet ChannelsList and connect it to GraphQL
- Check 4. block about component
- Use simple query
-
Mutations
- Server - query + resolver 2. Defining the GraphQL mutation on the server
- Client with optimistic UI 3. Calling the mutation from a React component
- Optimistic UI Speeding up GraphQL Mutations with optimistic UI
-
Subscriptions
- Create subscription for new channel (It's different than tutorial :))
- Subscriptions server
- Subscriptions client