This is a repo with demo code
For this article: https://medium.com/@lirancohen_76284/internationalize-your-graphql-2c2eaeb37d49
Usage
yarn start
to start the server- go to: http://www.localhost:4000/graphql to enter the playground.
- set up a cookie named
lang
... with dev tools or with chrome extension called cookie monster - change the
lang
cookie value betweenen
andes
and see thegreeting
field value changes. - Be sure to accordinly change your playground settings as explained in this issue: graphql/graphql-playground#748 (comment)