Skip to content

Instantly share code, notes, and snippets.

@jmn
Created December 24, 2018 21:25
Show Gist options
  • Save jmn/a83cd58bd381afbd271db8eb59782c6d to your computer and use it in GitHub Desktop.
Save jmn/a83cd58bd381afbd271db8eb59782c6d to your computer and use it in GitHub Desktop.
const GET_POST = gql`
query post($id: ID!) {
post(id: $id) {
id
title
content
}
}
`;
const Q = gql`
query allPosts($cursor: String, $tags: String) {
allPosts(username: "jmn", tags: $tags, first: 1, after: $cursor) {
edges {
node {
id
title
content
}
}
pageInfo {
startCursor
endCursor
}
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment