Created
September 3, 2017 13:36
-
-
Save crucialfelix/8208a07f21241f4f83be06d36be59b05 to your computer and use it in GitHub Desktop.
This file contains 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 "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 | |
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