Skip to content

Commit 8d4769d

Browse files
committed
Update readme
1 parent c484531 commit 8d4769d

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ subjects.insert(subject2) // insert billy
7878

7979
subjects.remove(["_id": subject1.id!]) // remove dan
8080

81-
subjects.update(query: ["name":"Billy"], data: subject1, type: .Basic) // replace billy with dan
81+
subjects.update(query: ["name":"Billy"], document: subject1, type: .Basic) // replace billy with dan
8282

8383
let results = subjects.find(["age": 15]) // find all people aged 15 (dan)
8484

@@ -91,7 +91,7 @@ switch results {
9191
case .Success(let testSubjects):
9292
print(testSubjects)
9393
for testSubject in testSubjects {
94-
testSubject.printSelf()
94+
print(testSubject.data)
9595
}
9696

9797
case .Failure(let err):
@@ -101,6 +101,8 @@ case .Failure(let err):
101101

102102
```
103103

104+
For some more examples, I would take a look at the test suite (most of the main operations are tested).
105+
104106
# Tutorial
105107

106108
This example assumes that you have setup the project and have MongoDB running.
@@ -249,7 +251,7 @@ or only remove those whose name is Dan, for example, with:
249251
subjects.remove(["name" : "Dan"])
250252
```
251253

252-
That's about it for now! More operations will be supported in the future.
254+
More operations are supported, but I think at this point you get the gist of it. Take a look at the block of code above for some more examples, and then take a look at the test suite if you want even more information.
253255

254256

255257
# Features
@@ -271,4 +273,6 @@ Ideally I would like to mirror all of the features that the Mongo Shell offers,
271273
# Contributing
272274
Any and all help is very welcome! Feel free to fork and submit a pull request - I will almost certainly merge it.
273275

274-
You should start by looking at the [trello board](https://trello.com/b/FT2OCCjQ/swiftmongodb) and see if there's anything you want to implement there. You can also create feature requests.
276+
You should start by looking at the [trello board](https://trello.com/b/FT2OCCjQ/swiftmongodb) and see if there's anything you want to implement there. You can also create feature requests.
277+
278+
There's also a test suite included in the xcode project - so far the coverage isn't too good but it will get better, I promise.

0 commit comments

Comments
 (0)