Anyone else experiencing errors using `graphql-req...
# prisma-whats-new
m
Anyone else experiencing errors using
graphql-request
in a webtask? Worked yesterday, but today receiving a
400
error.
Copy code
'use latest'
const { request } = require('graphql-request')
Weird. Using this works. The bracket notation used to work, but apparently no longer.
Copy code
'use latest'
const request = require('graphql-request').request
a
This is likely because the destructuring notation (ie. the brackets) is a newer node feature and the graphcool node runtime probably doesn’t support it yet.
👍🏼 1
m
Yeah, it was just strange that it previously seemed to have worked. Thanks @amann!