Closed psi-4ward closed 8 years ago
~I appreciate that you closed the issue because you solved the problem. But I'm not clear as to why we need to return an array, when we know there's only one object we want to return.~
~For example, I execute a mutation that adds an object to an array. I want to return just that new object. I get the error above if I return only the object, but it works fine if I wrap it in an array. Seems unnecessary to me.~
Never mind, my schema was still expecting to return a list, which I forgot to change.
How is this solved? I also get this error when running the example code base and querying with a graphiql (middleware) client.
Nevermind, I now merge {paginate:false} with every resolver query returning arrays.
Is there a way to get a new service object like app.services('myservice', true)
so that we can set new defaults for it?
Pffff...that would not be possible, as it would never match incoming requests
Hi!
First: THANKS! Its an amazing approach! But i ran into some Problems:
Result:
So it seems Apollo can not handle our result Object
{total: 3, limit:0, data: [ ...
If i modify the resolver to only return the data Array it works:
But the total, limit and skip Params are important to know about the data.
Edit
I used NeDB Data and not your mongoose models. Seems mongoose returns the plain array which works.