Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created March 30, 2018 18:23
Show Gist options
  • Select an option

  • Save SaraVieira/20ab3821346592111ec3138a98672fc5 to your computer and use it in GitHub Desktop.

Select an option

Save SaraVieira/20ab3821346592111ec3138a98672fc5 to your computer and use it in GitHub Desktop.
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