yaacovCR / graphql-tools-reproduction

Repository for reproducing issues with graphql-tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grapql-tools-reproduction

A repository for reproducing issues with graphql-tools.

Installing

Install the dependencies:

yarn install

Remote schema

Start the server that acts as the remote schema with:

yarn run start-remote

GraphQL Playground will be available at http://localhost:4000

Local schema

Start the server that acts as the public local schema with:

yarn run start-local

GraphQL Playground will be available at http://localhost:4001

Sample query:

{
  leaseCalculation(input: {
    purchasePrice: 30000, 
    tenor: 36, 
    downPayment: 3000,
    balloonPayment: 1,
    object: {
      categoryId: "5",
      brand: "Volvo",
      type: "XF480",
      year: 2020,
      used: true
    },
    chamberOfCommerceNumber: "123456"
  }) {
    ... on LeaseCalculation {
      monthlyPayment
      boundaries {
        downPayment {
          min
          max
        }
      }      
    }
  }
}

About

Repository for reproducing issues with graphql-tools


Languages

Language:TypeScript 100.0%