What is the limit of a size of a query/mutation?

I have a mutation where I generate an array of 13K+ objects, and then send it in a single mutation. It keeps erroring out with:

{"message":"invalid json response body at [myURL] reason: Unexpected token < in JSON at position 0","type":"invalid-json"}

I broke the script down to 1K objects at a time and those successfully go through. I went through all 14 chunks of data, and had to error as above. So I believe the error is because of the amount of data.

This might be a constraist on GraphQL spec itself and not on Dgraph. Anybody have references to see what is going on here?

1 Like

That seems to be a parsing error though… can you paste the head -n 10 of the json?


bump @amaster507