rgstephens / node-red-contrib-graphql

A NodeRed node to execute GraphQL Queries
13 stars 23 forks source link

'showDebug' and ability to pass in 'customHeaders' #22

Closed pbassham closed 3 years ago

pbassham commented 3 years ago

Added a 'showDebug' option that will display more of the response in msg.debugInfo. added ability to pass in msg.customHeaders.

  1. I wasnt able to see errors that were returned under the response.data or other errors from more more complex queries because it automatically returned response.data.data as the payload, so this adds a debug option to be able to turn that on.
  2. I needed to pass in an 'auth' header different than 'Authorization', so this lets you pass in headers.