Skip to content

Instantly share code, notes, and snippets.

@crucialfelix
Created September 3, 2017 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crucialfelix/8208a07f21241f4f83be06d36be59b05 to your computer and use it in GitHub Desktop.
Save crucialfelix/8208a07f21241f4f83be06d36be59b05 to your computer and use it in GitHub Desktop.
import gql from "graphql-tag";
import ShowingRequest from "./ShowingRequest";
import Deals from "./Deals";
const query = gql`
query Client($pk: ID!) {
viewer {
id
agent {
id
client(pk: $pk) {
id
pk
name
phone
work
email
verified
createdOn
deals {
edges {
node {
id
__typename
...DealsDeal
}
}
}
showingRequests {
edges {
node {
id
pk
...ShowingRequestShowingRequest
}
}
}
}
}
}
}
${ShowingRequest.fragments.showingRequest}
${Deals.fragments.deal}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment