MongoLink`
MongoLink`

MongoDatabase

MongoDatabase[]

is an object which represents a MongoDB database.

Details

  • To use MongoDatabase, you first need to load MongoLink using Needs["MongoLink`"].
  • MongoDatabase objects are typically created via MongoGetDatabase.
  • MongoCollection objects are stateful, containing a connection to a MongoDB database.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Connect to a MongoDB server running locally:

In[2]:=
Click for copyable input
Out[2]=

Connect to a MongoDB database:

In[3]:=
Click for copyable input
Out[3]=

This is equivalent to:

In[4]:=
Click for copyable input
Out[4]=

See Also

MongoGetDatabase  MongoGetCollection

Tutorials