import 'dart:async'; import 'package:angel_framework/angel_framework.dart'; import 'package:angel_orm/angel_orm.dart'; import 'package:angel_orm_test/src/models/car.dart'; @Expose('/api/cars') class CarController extends Controller { @Expose('/luxury') Future> getLuxuryCars(QueryExecutor connection) { var query = new CarQuery(); query.where ..familyFriendly.equals(false) ..createdAt.year.greaterThanOrEqualTo(2014) ..make.isIn(['Ferrari', 'Lamborghini', 'Mustang', 'Lexus']); return query.get(connection); } }