Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Only one level of relations is supported #17

Description

@alexisohayon

How do you do a query that filters from few level of relations?

Specifically, I wrote this:

      const legs = await findQuery(Leg)
          .build({
            'eager': `[
              passengers, 
              flight.[airline, aircraft, via_airport,
                route.[outbound_origin, outbound_destination]
              ],
            ]`,
            'flight.route.organization_id': org.id,
            'flight.route.outbound_destination.iata_code': 'CDG'
          })     

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions