diff --git a/README.md b/README.md index 11c70d12..369994e8 100644 --- a/README.md +++ b/README.md @@ -116,11 +116,11 @@ Storages offer multiple kind of contexts that are the entry points to the databa #### Fetching data ```swift -let pedros: [Person] = try! db.fetch(Request().filteredWith("name", equalTo: "Pedro")) -let tasks: [Task] = try! db.fetch(Request()) -let citiesByName: [City] = try! db.fetch(Request().sortedWith("name", ascending: true)) +let pedros: [Person] = try! db.fetch(FetchRequest().filteredWith("name", equalTo: "Pedro")) +let tasks: [Task] = try! db.fetch(FetchRequest()) +let citiesByName: [City] = try! db.fetch(FetchRequest().sortedWith("name", ascending: true)) let predicate: NSPredicate = NSPredicate(format: "id == %@", "AAAA") -let john: User? = try! db.fetch(Request().filteredWith(predicate: predicate)).first +let john: User? = try! db.fetch(FetchRequest().filteredWith(predicate: predicate)).first ``` #### Remove/Insert/Update operations @@ -208,7 +208,7 @@ class Presenter { var observable: RequestObservable! func setup() { - let request: Request = Request().filteredWith("artist", equalTo: "pedro") + let request: FetchRequest = FetchRequest().filteredWith("artist", equalTo: "pedro") self.observable = storage.instance.observable(request) self.observable.observe { changes in case .Initial(let objects):