/graphql-demo

Small working example of a GraphQL endpoint

Primary LanguageTypeScript

GraphQL Demo

This repo is a small working example of a GraphQL endpoint.

Getting Started

  1. clone the repo and install the dependencies.

    $> git clone https://github.com/blockframes/graphql-demo
    $> cd graphql-demo
    $> npm i
    
  2. start the server

    $> npm start
    
    > graphql-demo@1.0.0 start ./graphql-demo
    > ts-node ./src/index.ts
    
    Server Ready!
    
  3. open the GraphQl Playground in your browser

  4. start typing queries

    For example:

    query {
      user(id: "001") {
        name
      }
    }