O'Reilly logo

RestKit for iOS by Taras Kalapun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Requesting related objects

Every MongoDB database has a collection, which consists of documents. While we didn't get to the creating objects topic in our guide, to create a collection manually go to MongoHQ's web console, select a database, and click on the Add Collection button.

You can then name your new collection and click on the Create collection button as shown in the following screenshot:

Requesting related objects

Creating a new Collection in a web interface

Checking the collection API documentation, we will see a request path /databases/:db/collections. The :db in this path is a parameter, and should be equal to a database name. I prefer calling it databaseID. Such ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required