Skip to content

Commit ad8b287

Browse files
committed
Updated dependencies
1 parent 61eb967 commit ad8b287

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

Sources/MongoDBModel/ComparisonQueryOperator.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import Foundation
9-
import Predicate
109

1110
/// Comparison Query Operators
1211
///
@@ -44,7 +43,7 @@ public enum ComparisonQueryOperator: String, Codable, CaseIterable {
4443

4544
public extension ComparisonQueryOperator {
4645

47-
init?(predicate: Comparison.Operator) {
46+
init?(predicate: FetchRequest.Predicate.Comparison.Operator) {
4847
switch predicate {
4948
case .equalTo:
5049
self = .equalTo

Sources/MongoDBModel/LogicalQueryOperator.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import Foundation
9-
import Predicate
109

1110
/// Logical Query Operators
1211
///
@@ -32,7 +31,7 @@ public enum LogicalQueryOperator: String, Codable, CaseIterable {
3231

3332
public extension LogicalQueryOperator {
3433

35-
init(predicate: Compound.Logical​Type) {
34+
init(predicate: FetchRequest.Predicate.Compound.Logical​Type) {
3635
switch predicate {
3736
case .and:
3837
self = .and

Sources/MongoDBModel/Predicate.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77

88
import Foundation
99
import CoreModel
10-
import Predicate
1110
import MongoSwift
1211

1312
public extension BSONDocument {
1413

15-
init?(predicate: Predicate) {
14+
init?(predicate: FetchRequest.Predicate) {
1615
switch predicate {
1716
case .comparison(let comparison):
1817
self.init(predicate: comparison)
@@ -26,7 +25,7 @@ public extension BSONDocument {
2625

2726
public extension BSONDocument {
2827

29-
init?(predicate: Compound) {
28+
init?(predicate: FetchRequest.Predicate.Compound) {
3029
guard predicate.type != .not else {
3130
// { field: { $not: { <operator-expression> } } }
3231
return nil
@@ -49,8 +48,8 @@ public extension BSONDocument {
4948

5049
init?(predicate: Comparison) {
5150
// { <field>: { $eq: <value> } }
52-
return nil
53-
}
51+
return nil
52+
}
5453
}
5554

5655
public extension BSON {

0 commit comments

Comments
 (0)