graphql debugging query snippet
Think this is a great way to see if there's data coming back from a client side query component.
It could look like this. I copied from Apollo site. :)
client
.query({
query: gql`
{
rates(currency: "USD") {
currency
}
}
`
})
.then(result => console.log(result));
Comments