ObjectRocket
Getting Started Guide
Billing overview
ObjectRocket hosting platform
Login and SSO with ObjectRocket
MongoDB
MongoDB overview
MongoDB space usage
MongoDB utilities
MongoDB for the Rackspace Dedicated cloud
MongoDB Connection Examples
Go Driver Examples
Node.js Driver Examples
PHP Driver Examples
Python Driver Examples
Ruby Driver Examples
Redis
Elasticsearch
Migration guide
ObjectRocket API documentation
ObjectRocket
Docs
»
MongoDB
»
MongoDB Connection Examples
View page source
MongoDB Connection Examples
ΒΆ
Go Driver Examples
Installation
Example document
Connecting
Connecting to a replica set:
Connecting to a sharded instance:
Connecting to a sharded instance using SSL:
Creating a document
Creating and inserting a document:
Reading documents
Finding all documents with a specific field:
Updating a document
Updating a document:
Deleting a document
Deleting a specific document:
Additional reading
Node.js Driver Examples
Installation
Example document
Connecting
Connecting to a replica set:
Connecting to a sharded instance:
Connecting to a sharded instance using SSL:
Creating a document
Reading documents
Updating a document
Deleting a document
Additional reading
PHP Driver Examples
Installation
Example document
Connecting
Connecting to a replica set:
Connecting to a sharded instance:
Connecting to a sharded instance with SSL:
Creating a Document
Reading documents
Updating a document
Deleting a document
Additional reading
Python Driver Examples
Installation
Example document
Connecting
Connecting to a replica set:
Connecting to a sharded instance with a write concern of 1:
Connecting to a sharded instance using SSL:
Creating a document
Reading documents
Updating a document
Deleting a document
Additional reading
Ruby Driver Examples
Installation
Example document
Connecting
Connecting to a replica set:
Connecting to a sharded instance with a write concern of 1:
Connecting to a sharded instance using SSL:
Creating a document
Reading documents
Updating a document
Deleting a document
Additional reading