Closed evoactivity closed 7 months ago
Realised I can do this by setting the depth to 0
Actually, a way to include some relationships and not others would be useful. Depth is all or nothing. So I guess I'd want to pass an option to the relator specifically, not the entire serializer.
Not sure how I kept missing the include
option last night. That works fine :)
Is your feature request related to a problem?
Is there a way to create relationships that only adds to the resource
relationships
object, so no additional documents are included at the top level? I don't see anything in the docs outlining how to do that.Describe the solution you'd like
An option to turn included off
Additional context
The object I pass into the relator may look something like
I use this
userId
to lookup the entity to relate and include, I'd like an option to only relate. So I end up withinstead of
This way my client knows about the relationship and can decide if it wants to load it.