Skip to content

Only one level of relations is supported #17

@alexisohayon

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions