stablekernel / aqueduct

Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.
https://aqueduct.io
BSD 2-Clause "Simplified" License
2.42k stars 280 forks source link

Use multiple query condition after join #954

Open bahramee opened 3 years ago

bahramee commented 3 years ago

i want use another where condition on card. can i do that in this situation ?

final cardQuery = Query<User>(context)
      ..join(set: (u) => u.card)
          .where((x) => x.product)
          .identifiedBy(productId);