- setup NPM (if you don't have it already)
- install graphcool:
$ npm install -g graphcool
- install apollo codegen:
$ npm install -g apollo-codegen
- generate your schema:
$ apollo-codegen introspect-schema https://urlsche.ma/blablabla —output schema.json
- paste the schema.json over the current schema.json inside project
- replace files deletePost.graphql, getAllPosts.graphql, newPosts.graphql with your own mutations ( test them in the playground. also check this documentation: https://www.graph.cool/docs/reference/graphql-api/mutation-api-ol0yuoz6go#overview ) ——————— if new mutations were added, rebuild project in order to generate the sourcefiles
- In MyApolloClient replace the BASE_URL with your graphql link (Check graphcool->endpoints)
- Dialog to notify user when action is performed
- delete
- add
- list all