You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use graphql.js inside the Google Cloud Functions to query my database through a Graphql interface.
However when I try to set the URL, I get this error:
textPayload: "TypeError: query.trim is not a function
at Object.helper (/srv/node_modules/graphql.js/graphql.js:425:80)
at GraphQLClient.that.(anonymous function) [as query] (/srv/node_modules/graphql.js/graphql.js:442:23)
at listAggregators (/srv/lib/intents/location-permission.js:17:54)
Note: I am using typescript, instead of javascript. Maybe there is some compiler option that I should set, because I also get a compile error when I try to use import instead of require in import graphql from 'graphql.js';
Thanks,
Komyg
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to use graphql.js inside the Google Cloud Functions to query my database through a Graphql interface.
However when I try to set the URL, I get this error:
Here is my code:
Should I set some extra parameters here?
Note: I am using typescript, instead of javascript. Maybe there is some compiler option that I should set, because I also get a compile error when I try to use
import
instead ofrequire
inimport graphql from 'graphql.js';
Thanks,
Komyg
The text was updated successfully, but these errors were encountered: