File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -477,32 +477,6 @@ extension Query: Queryable {
477
477
}
478
478
}
479
479
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
-
506
480
/**
507
481
Retrieves *asynchronously* a complete list of `ParseObject`'s that satisfy this query.
508
482
You can’t perform that action at this time.
0 commit comments