A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

PartialFields in request, limiting fields on nested objects

Vote:
 

Hey!

I'm trying to build a way to do projections without having to call .Select() on a query. Just adding to the Fields array on the request body works nicely. But in some cases a property is a list of objects, and I'd like to be able to limit the fields sent back from such entities.

But I can't quite figure out how. From what I can tell the built-in projections using .Select() generates an include of "FieldName.*" no matter which nested fields are used in the mapping.

Is this possible to do?

#204088
May 18, 2019 18:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.