Basic graphQL Mongoose set up
It looks like your biz resolver uses find()
, which will return a list. What you want is findOne()
.
PS: You can usually debug this kind of problem by adding a print statement in the appropriate resolve functions (or running the node debugger).