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

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm