query method
Future<List>
query({
- required String from,
- List<
String> select = const [], - List where = const [],
- String orderBy = "",
- int offset = 0,
- bool count = false,
- 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;
}