1
0
Fork 0
This commit is contained in:
Patrick Huber 2014-11-28 09:20:11 +01:00
parent 7868ad1e02
commit 55655ada3b
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ like any other collection with the db object, e.g.
```
Of course you still use any collection directly with the db object even
from Foxx. To access an collection called "movies" this could be one solution:
from Foxx. To access a collection called "movies" this could be one solution:
```js
app.get("/all", function(req, res) {
@ -95,7 +95,7 @@ Then there are Foxx repositories. These are objects that you can create
to hide the internals of the database access from the application so
that the application will just use the repository but not the database.
A repository is an object that wrap access to a collection (or multiple
A repository is an object that wraps access to a collection (or multiple
collections if you want), whereas controller.collection returns the
collection itself. That's the main difference.