Back
Featured image of post Note to future me — Adding GraphQL to an app

Note to future me — Adding GraphQL to an app

Adding the library to the app see commit 03bd7a7534f7a23276fc47c4f7c94d7ac153bc0b

Adding the library to the app see commit 03bd7a7534f7a23276fc47c4f7c94d7ac153bc0b

  • plugin
  • dependencies

Making a service

https://gist.github.com/maiatoday/578aebcee3bd9decb6e3c6833c73a4ba#file-wikipage-graphql

Adding the service to the app

  • adding a query
  • adding the schema a5a47f0ff45f6bc5d5a3aa6f1fee50af363f7893
  • getting access to the service
  • calling the service

Some pointers on query syntax

Gitrepo

`sudo apollo-codegen introspect-schema https://api.blargh.com/graphql — header “Authorization: Bearer xxxx” — output schema.json`

Licensed under CC BY-NC-SA 4.0