Handle `null` values returned from GraphQL API
sethawright opened this issue · 3 comments
sethawright commented
The NewRelic API is returning several null
values for account. This causes errors in our build due to a type error at https://github.com/newrelic/serverless-newrelic-lambda-layers/blob/master/src/integration.ts#L57. Would it be possible to filter the response so this type error can be avoided?
Not sure why these null
values are showing up in the API.
[
{
"authLabel":"*******",
"createdAt":000000000,
"externalId":"***********",
"id":00000000,
"name":"****-name",
"nrAccountId":000000000,
"updatedAt":00000000000
},
null,
null
]
sethawright commented
mrickard commented
Thank you for your contribution, @sethawright ! It's released with v4.0.0.