PartialFields in request, limiting fields on nested objects



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?

May 18, 2019 18:30