Skip to content

How to filter on sub-property? #29

@judgeaxl

Description

@judgeaxl

Hi! I've got a JSON:API which supports querying on a property in a nested list:

class Child {
  property
}

class Parent {
  children: Child[]
}

I would like to write a filter clause on children.property == value, bscially getting all Parents who has a child matching the property. The API does not expose the Child collection directly, they are only available through /parents.

Essentially, is it possible to write a FilterClause which doesn't use the root type of the entity store?

I eventually need the filter query to look like /parents?filter[property]=value

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions