text: Graph.
  Unfortunately, syncing the types of both GraphQL and TypeScript is not so straight forward, and here are two ways in which we can achieve this::
  We will also use uuid to generates id's, bcrypt to hash passwords and JWT to generate tokens, but you can ignore these parts as we will not discuss them in this article.:
  createPuppywhich accepts a Puppy by the name of input. The
  !sign after the Puppy means it is required, and it returns a single puppy.
  onPuppysubscription:
  .graphqlconfig This file is used by graphql-cli. It was created with the init command.:
  makeExecutableSchema. We will cover the
  rawSchemavariable later, but this executable schema is the optimized version of our GraphQL schema with the resolvers, it matches GraphQL endpoints to functions that return the responses.
  And that's it. With this we have web-socket support, GraphQL support, auto-generated documentation and a playground to test queries.:
  namespace=GQL --global=true --typePrefix='' generate-ts --output=src/__typedefs/graphqlTypes.d.ts src/__typedefsgraphql-schema-typescript --.
  Here are a few resources to learn GraphQL and Apollo further:
  Please leave your appreciations if you liked my tutorial and share it with whoever might find it helpful.
  3.4K+ developers have started their personal blogs on Hashnode in the last one month.
  Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more