selectFirstByQuery method
FutureOr<O?>
selectFirstByQuery(
- String query, {
- Object? parameters,
- List? positionalParameters,
- Map<
String, Object?> ? namedParameters, - Transaction? transaction,
- EntityResolutionRules? resolutionRules,
override
Implementation
@override
FutureOr<O?> selectFirstByQuery(String query,
{Object? parameters,
List? positionalParameters,
Map<String, Object?>? namedParameters,
Transaction? transaction,
EntityResolutionRules? resolutionRules}) =>
selectByQuery(query,
parameters: parameters,
namedParameters: namedParameters,
transaction: transaction,
limit: 1,
resolutionRules: resolutionRules)
.resolveMapped((result) => result.firstOrNull);