This sample repository exposes a Typescript graphql-yoga server on port :4000/graphql
.
- Queries for
users
,posts
andcomments
- Mutations to create, update and delete a
User
, aPost
and aComment
- Subscriptions to all theses Mutation events through the
post
andcomment
subscriptions.
npm install
,yarn install
orpnpm install
use npm run dev
to run the development server then visit http://localhost:4000/graphql
to view a GraphiQL interactive IDE or http://localhost:4000
for extra information about graphql-yoga.
use npm run build
. The generated build can be found in the ./dist
folder.
use npm start
then visit port :4000/graphql
for the GraphiQL interactive IDE or :4000
for extra information about graphql-yoga