aroman
10/06/2018, 7:37 PMexport const userQueries = {
async fetchUsers(_, {}, ctx) {
console.log(await ctx.db.users())
return ctx.db.users();
}
};
but on playground it tells me: "message": "Cannot return null for non-nullable field User.firstName.",
However, that console.log I have there does log out the object. Is there something I'm missing?huv1k
10/06/2018, 7:39 PMaroman
10/06/2018, 7:44 PMaroman
10/06/2018, 7:45 PMhuv1k
10/06/2018, 7:45 PMreturn ctx.db.users({}, info)aroman
10/06/2018, 7:47 PM