graphcool-lib icon indicating copy to clipboard operation
graphcool-lib copied to clipboard

Problem with Graphcool initialization

Open serverlesspolska opened this issue 7 years ago • 0 comments

Hi there,

I try to use graphcool-lib in the following way:

const client = Graphcool(gcProjectId, { token: gcToken })
const api = client.api('simple/v1')
api.request(` some graphql query`)

But I get following error: TypeError: Cannot set property 'endpoints' of undefined.

PS. I don't use fromEvent function because I try to connect to my GraphCool db from Lambda function.

What am I doing wrong?

serverlesspolska avatar May 29 '18 17:05 serverlesspolska