I've been working with mongoose for a quite a while now and recently started exploring graphql. In mongoose, we can use specific fields like so:
User.findById(id).select('+name +email');
We can also do the same in a graphql query. So what's the difference? In the resolve
function in graphql, we will anyways get a list of all users. Doesn't graphql add extra delay in response?
0 Replies