selectFirstByQuery method

  1. @override
FutureOr<O?> selectFirstByQuery(
  1. String query, {
  2. Object? parameters,
  3. List? positionalParameters,
  4. Map<String, Object?>? namedParameters,
  5. Transaction? transaction,
  6. 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);