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?
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?