What do you do when a resolver requires fields to ...
# orm-help
z
What do you do when a resolver requires fields to return calculated/derived fields, eg. we want
BlogPosts {id, title, countedComments}
so that client query has to specify
getBlogPosts(...) { id, title, comments }
is there a way to add the comments field to the info in
Copy code
export const getBlogPosts = async (_, args, ctx, info) => { ...resolver code... }
or is there a better way to do this?