sangria icon indicating copy to clipboard operation
sangria copied to clipboard

Provide query arguments alongside name projections

Open robconrad opened this issue 6 years ago • 1 comments
trafficstars

In this StackOverflow comment it is recommended to use built-in projection support to avoid the N+1 query problem when resolving nested objects. This works perfectly if the only requirement of the generated query is knowing which items to select since those are all available as ProjectedName vectors. However, if arguments can exist within the nested objects that are required to form predicates, sorts, or other non-shape parameters of the query it becomes necessary to dive into the ast to pull the arguments out.

Would it be possible to provide the args at the projected level of the ast the ProjectedName represents along with the name?

robconrad avatar Dec 16 '18 23:12 robconrad

#563

nickhudkins avatar Jan 18 '21 01:01 nickhudkins