Skip to content

Commit cd8b006

Browse files
committed
nits
1 parent ecd7908 commit cd8b006

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Sources/ParseSwift/Types/Query.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -477,32 +477,6 @@ extension Query: Queryable {
477477
}
478478
}
479479

480-
/**
481-
Mongo query plan information for finding objects *asynchronously* and returns a completion block with the results.
482-
- note: An explain query will have many different underlying types. Since Swift is a strongly
483-
typed language, a developer should specify the type expected to be decoded which will be
484-
different for MongoDB and PostgreSQL. One way around this is to use a type-erased wrapper
485-
such as the [AnyCodable](https://github.com/Flight-School/AnyCodable) package.
486-
- parameter options: A set of header options sent to the server. Defaults to an empty set.
487-
- parameter callbackQueue: The queue to return to after completion. Default value of .main.
488-
- parameter completion: The block to execute.
489-
It should have the following argument signature: `(Result<[Decodable], ParseError>)`.
490-
*/
491-
public func findExplainMongo<U: Decodable>(options: API.Options = [],
492-
callbackQueue: DispatchQueue = .main,
493-
completion: @escaping (Result<[U], ParseError>) -> Void) {
494-
if limit == 0 {
495-
callbackQueue.async {
496-
completion(.success([U]()))
497-
}
498-
return
499-
}
500-
findExplainMongoCommand().executeAsync(options: options,
501-
callbackQueue: callbackQueue) { result in
502-
completion(result)
503-
}
504-
}
505-
506480
/**
507481
Retrieves *asynchronously* a complete list of `ParseObject`'s that satisfy this query.
508482

0 commit comments

Comments
 (0)