JasonS
JasonS

Reputation: 7733

where can I find mongodb documentation for _id.$oid?

i tried looking through the javascript docs for mongodb, but come up empty: http://api.mongodb.org/js/current/index.html

there doesn't seem to be any documentation for the datastore items returned....

is there somewhere else to look?

Upvotes: 0

Views: 2340

Answers (2)

WiredPrairie
WiredPrairie

Reputation: 59783

The documentation for it is here.

data_oid
{
  "$oid": "<id>"
}

Shell:

ObjectId( "<id>" )

Notes:

<id> is a 24-character hexadecimal string.

It's part of an extension for the REST APIs. It an ObjectId, mapped to a structure that is intended to more closely represent the BSON ObjectId structure (as there's no equivalent in JavaScript for the ObjectID as it's a 12 byte number).

Upvotes: 1

dontGoPlastic
dontGoPlastic

Reputation: 1782

Are you simply looking for information on what ObjectId is in mongodb?

http://docs.mongodb.org/manual/core/object-id/

Upvotes: 1

Related Questions