Report a Dgraph Bug
What version of Dgraph are you using?
Latest (20.11)
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
I am using Docker
Steps to reproduce the issue (command/config used to run Dgraph).
I am following the steps in the guide at https://dgraph.io/docs/deploy/installation/lambda-server/. I also used the example type and mutation for newAuthor at Lambda Mutations - GraphQL. I am unable to get the provided example to work. I did have to modify the docker-compose.yml file to not contain -o 100 - for some -o 100 breaks prevents alpha from connecting to zero.
Attachments
docker-compose.yml (677 Bytes)
schema.graphql (662 Bytes)
lambda.js (2.1 KB)
Expected behaviour and actual result.
I am experiencing problems with Lambda Mutations / Queries. I even tried using the example above, but received the following error. I am not having any issues with the Lambda Fields - these are working for me, so if I do fullName backed my a Lambda, this works. Only with Lambda Queries and Lambda Mutations. I have tried using dgraph/dgraph with tags v20.11.0, latest, master, etc, with no success.
{
"errors": [
{
"message": "Evaluation of custom field failed because external request returned an error: unexpected error with: 400 for field: newAuthor within type: Mutation.",
"locations": [
{
"line": 2,
"column": 3
}
]
},
{
"message": "Non-nullable field 'newAuthor' (type ID!) was not present in result from Dgraph. GraphQL error propagation triggered.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"newAuthor"
]
}
],
"extensions": {}
}```