I’ve found a couple issues regarding Schema Extensions
- if the ‘Email-password auth’ integration is enabled - the ‘authProvider’ is required for ‘createUser’ mutation.
And it means that next mutation is not valid
(this code taken from function examples)
I have to make is as follows:
I guess ‘authProvider’ must not be a required filed.
2. If Schema code is pasted as an endpoint to the AWS lambda function (not inline) -
graphcool-lib is trying to read a ‘projectId’ from
event.context.graphcool (see source code). Then it throws an error since
event.context is undefined.
Here is a correct way to extract
projectId = JSON.parse(event.body).context.graphcool.projectId
It means that
graphcool-lib is not usable in case when function is deployed to aws.