We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ef447a + 0c88af7 commit 149d250Copy full SHA for 149d250
packages/dart/lib/src/network/parse_query.dart
@@ -536,7 +536,7 @@ class QueryBuilder<T extends ParseObject> {
536
537
/// Find the first object that satisfies the query.
538
/// Returns null, if no object is found.
539
- Future<T>? first() async {
+ Future<T?> first() async {
540
ParseResponse parseResponse =
541
await (QueryBuilder.copy(this)..setLimit(1)).query();
542
if (parseResponse.success) {
0 commit comments