Skip to content

How to filter on sub-property? #29

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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