getFirst<T extends YustDoc> method
Future<T?>
getFirst<T extends YustDoc>(
- YustDocSetup<
T> docSetup, { - List<
YustFilter> ? filters, - List<
YustOrderBy> ? orderBy,
override
Returns the first YustDoc in a list from the server, if available, otherwise from the cache. The cached documents may not be up to date!
Be careful with offline functionality. The result is null if no document was found.
Implementation
@override
Future<T?> getFirst<T extends YustDoc>(
YustDocSetup<T> docSetup, {
List<YustFilter>? filters,
List<YustOrderBy>? orderBy,
}) async {
return getFirstFromDB(docSetup, filters: filters, orderBy: orderBy);
}