I'm wondering if there's a way in GraphiQL that will let me pipe the result from one query / mutation into another query / mutation. Here's an example where the login
mutation is used to get a viewer
and the viewer
would be used to query the addresses
for that user. Is this possible with GraphQL / GraphiQL.
mutation {
login(credentials: {
email: "[email protected]",
password: "password123",
passwordConfirmation: "password123"
}) {
viewer
}
}
query {
addresses(viewer:viewer) {
city
}
}