Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

pepijno/apollo-federation-variables-bug

Repository files navigation

apollo-federation-variables-bug

How to

./gradlew bootRun

In another shell

npm i && node gateway.js

Then in another shell

$ curl -X POST -H "Content-Type: application/json" --data '{"query":"query getBook($pageCount: Int!) { bookByPageCount(pageCount: $pageCount) { id name pageCount } }","variables":{"pageCount":223},"operationName":null}' http://localhost:4000/graphql
{"data":{"bookByPageCount":{"id":"book-1","name":"Harry Potter and the Philosopher's Stone","pageCount":223}}}
$ curl -X POST -H "Content-Type: application/json" --data '{"query":"query getBook($pageCount: Int!) { bookByPageCount(pageCount: $pageCount) { id name pageCount } }","variables":{"pageCount":"223"},"operationName":null}' http://localhost:4000/graphql
{}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published