The following tables list supported MongoDB data types, drivers, and third-party tools for Cloud Firestore.
Data types
| BSON Type | Supported |
|---|---|
| 32-bit Integer (int) | Yes |
| 64-bit Integer (long) | Yes |
| Array | Yes |
| Binary Data | Yes |
| Boolean | Yes |
| Date | Yes |
| DBPointer | No |
| DBRef | No |
| Decimal128 | Yes |
| Double | Yes |
| JavaScript | No |
| JavaScript (with scope) | No |
| MaxKey | Yes |
| MinKey | Yes |
| Null | Yes |
| Object | Yes |
| ObjectId | Yes |
| Regular Expression | Yes |
| String | Yes |
| Symbol | No |
| Timestamp | Yes |
| Undefined | No |
Document _id
The top-level _id field in a document must be one of the following types:
- ObjectId
- String
- 64-bit Integer (long)
- 32-bit Integer (int)
- Double
- Binary
- Object
The total size of the _id must not exceed 1500 bytes.
Each values within an Object-typed ID must also be of a supported ID type or an Array of values, each of which is of a supported ID type.
Other BSON types are not supported.
Languages and MongoDB drivers
Cloud Firestore supports the following driver versions:
| Language | Driver versions |
|---|---|
| Java | 5.x |
| Node.js | 6.x 5.x |
| Python | 4.x 3.x (x ≥ 12) |
| Go | 2.x |
| C# | 3.x |
| Ruby | 2.x (x ≥ 16) |
OIDC authentication support
The Go, C#, and Ruby drivers support OpenID Connect (OIDC) authentication from Google Cloud for all supported driver versions.
The Java, Node.js, and Python drivers support OIDC authentication from Google Cloud starting with the following driver versions:
- Java: 4.10
- Node.js: 6.7
- Python: 4.7
Third-party tools
Cloud Firestore supports third-party tools described in this section.
| Tool | Description |
|---|---|
| mongoimport | MongoDB Database Tools |
| mongoexport | MongoDB Database Tools |
| mongodump | MongoDB Database Tools |
| mongorestore | MongoDB Database Tools |
| mongosh | MongoDB Shell |
| Mongoose | MongoDB object modeling tool |
| MongoDB Compass | GUI tool for data exploration |
What's next
- Run the Quickstart: Create a database and connect to it.
- Learn about Behavior differences.
- For a breakdown of supported features depending on MongoDB version, see