MongoDB

and the

MongoLab

Presented by Thomas Marques

Languages supported


mongoDB-lang

MongoDB client libraries

Who is using MongoDB ?


mongoDB-users

List of all companies

MongoLab

What is MongoLab ?


  • A cloud platform
  • Database-as-a-Service
  • Free or professional account
  • Provides a REST API
  • Ability to make backups


REST API


4 HTTP methods for interacting with the data


  • GET (Select)
  • POST (Insert)
  • PUT (Update)
  • DELETE (Delete)


REST API - Query


URL construction details :


  • https://api.mongolab.com/api/1
  • /databases/name-of-my-db
  • /collections/name-of-my-collection
  • ?apiKey=myAPIKey


REST API - Parameters


Optional parameters (JSON query)


  • Fields to include or exclude : f={"firstName": 1}
  • Sort : s={"priority": 1, "time":-1}
  • Where clause : q={"active": true}
  • Limit the number of results : l=1000


Fork me on GitHub