query method

Future<List> query({
  1. required String from,
  2. List<String> select = const [],
  3. List where = const [],
  4. String orderBy = "",
  5. int offset = 0,
  6. bool count = false,
  7. int limit = 50,
})
override

Implementation

Future<List<dynamic>> query(
    {required String from,
    List<String> select = const [],
    List<dynamic> where = const [],
    String orderBy = "",
    int offset = 0,
    bool count = false,
    int limit = 50}) async {
  final resp =
      _transformResponseQuery(await _dio.post("/web/dataset/search_read",
          data: _withDefaultParams({
            "context": {},
            "domain": where,
            "fields": select,
            "limit": limit,
            "model": from,
            "sort": orderBy,
            "offset": offset,
            "count": count
          })));
  return resp;
}