Created
March 30, 2018 18:23
-
-
Save SaraVieira/20ab3821346592111ec3138a98672fc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { gql } from "apollo-boost"; | |
| export const GET_NAMES = gql` | |
| query { | |
| allNameses { | |
| id | |
| name | |
| } | |
| } | |
| `; | |
| export const ADD_NAME = gql` | |
| mutation createNames($name: String!) { | |
| createNames(name: $name) { | |
| name | |
| id | |
| } | |
| } | |
| `; | |
| export const DELETE_NAME = gql` | |
| mutation deleteNames($id: ID!) { | |
| deleteNames(id: $id) { | |
| name | |
| id | |
| } | |
| } | |
| `; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment