âšī¸ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.2 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/database-integration/mongodb/ |
| Last Crawled | 2026-04-03 21:07:59 (6 days ago) |
| First Indexed | 2019-03-11 11:02:21 (7 years ago) |
| HTTP Status Code | 200 |
| Meta Title | 8.4. Interacting with MongoDB - Chapter 8. Database Integration |
| Meta Description | null |
| Meta Canonical | null |
| Boilerpipe Text | Operations Manual
Developer Manual
OGM Manual
Graph Algorithms
APOC
Java Reference
CALL apoc.mongodb.get(host-or-port,db-or-null,collection-or-null,query-or-null,[compatibleValues=true|false],skip-or-null,limit-or-null)
yield value
perform a find operation on mongodb collection
CALL apoc.mongodb.count(host-or-port,db-or-null,collection-or-null,query-or-null) yield value
perform a find operation on mongodb collection
CALL apoc.mongodb.first(host-or-port,db-or-null,collection-or-null,query-or-null,[compatibleValues=true|false]) yield value
perform a first operation on mongodb collection
CALL apoc.mongodb.find(host-or-port,db-or-null,collection-or-null,query-or-null,projection-or-null,sort-or-null,[compatibleValues=true|false],skip-or-null)
yield value
perform a find,project,sort operation on mongodb collection
CALL apoc.mongodb.insert(host-or-port,db-or-null,collection-or-null,list-of-maps)
inserts the given documents into the mongodb collection
CALL apoc.mongodb.delete(host-or-port,db-or-null,collection-or-null,list-of-maps) yield value
deletes the given documents from the mongodb collection and returns the number of affected documents
CALL apoc.mongodb.update(host-or-port,db-or-null,collection-or-null,list-of-maps) yield value
updates the given documents from the mongodb collection and returns the number of affected documents
If your documents have date fields or any other type that can be automatically converted by Neo4j, you need to set
compatibleValues
to true. These values will be converted according to Jackson databind default mapping.
Copy these jars into the plugins directory:
bson-3.4.2.jar
mongo-java-driver-3.4.2.jar
mongodb-driver-3.4.2.jar
mongodb-driver-core-3.4.2.jar
You should be able to get them from
here
, and
here (BSON)
(via Download)
Or you get them locally from your gradle build of apoc.
gradle copyRuntimeLibs
cp lib/mongodb*.jar lib/bson*.jar $NEO4J_HOME/plugins/
CALL apoc.mongodb.first('mongodb://localhost:27017','test','test',{name:'testDocument'})
If you need automatic conversion of
unpackable
values then the cypher query will be:
CALL apoc.mongodb.first('mongodb://localhost:27017','test','test',{name:'testDocument'},true) |
| Markdown | - [Operations Manual](https://neo4j.com/docs/operations-manual/current)
- [Developer Manual](https://neo4j.com/docs/developer-manual/current/)
- [OGM Manual](https://neo4j.com/docs/ogm-manual/current/)
- [Graph Algorithms](https://neo4j.com/docs/graph-algorithms/current/)
- [APOC](https://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/)
- [Java Reference](https://neo4j.com/docs/java-reference/current/)
[Database Modeling](https://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/database-integration/database-modeling/)
8\.4. Interacting with MongoDB
[ElasticSearch Integration](https://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/database-integration/elasticsearch/)
## 8\.4. Interacting with MongoDB
| | |
|---|---|
| | perform a find operation on mongodb collection |
| `CALL apoc.mongodb.count(host-or-port,db-or-null,collection-or-null,query-or-null) yield value` | perform a find operation on mongodb collection |
| `CALL apoc.mongodb.first(host-or-port,db-or-null,collection-or-null,query-or-null,[compatibleValues=true|false]) yield value` | perform a first operation on mongodb collection |
| | perform a find,project,sort operation on mongodb collection |
| `CALL apoc.mongodb.insert(host-or-port,db-or-null,collection-or-null,list-of-maps)` | inserts the given documents into the mongodb collection |
| `CALL apoc.mongodb.delete(host-or-port,db-or-null,collection-or-null,list-of-maps) yield value` | deletes the given documents from the mongodb collection and returns the number of affected documents |
| `CALL apoc.mongodb.update(host-or-port,db-or-null,collection-or-null,list-of-maps) yield value` | updates the given documents from the mongodb collection and returns the number of affected documents |
If your documents have date fields or any other type that can be automatically converted by Neo4j, you need to set **compatibleValues** to true. These values will be converted according to Jackson databind default mapping.
Copy these jars into the plugins directory:
- bson-3.4.2.jar
- mongo-java-driver-3.4.2.jar
- mongodb-driver-3.4.2.jar
- mongodb-driver-core-3.4.2.jar
You should be able to get them from [here](https://mongodb.github.io/mongo-java-driver/), and [here (BSON)](https://mvnrepository.com/artifact/org.mongodb/bson/3.4.2) (via Download)
Or you get them locally from your gradle build of apoc.
```
gradle copyRuntimeLibs
cp lib/mongodb*.jar lib/bson*.jar $NEO4J_HOME/plugins/
```
```
CALL apoc.mongodb.first('mongodb://localhost:27017','test','test',{name:'testDocument'})
```
If you need automatic conversion of **unpackable** values then the cypher query will be:
```
CALL apoc.mongodb.first('mongodb://localhost:27017','test','test',{name:'testDocument'},true)
``` |
| Readable Markdown | - [Operations Manual](https://neo4j.com/docs/operations-manual/current)
- [Developer Manual](https://neo4j.com/docs/developer-manual/current/)
- [OGM Manual](https://neo4j.com/docs/ogm-manual/current/)
- [Graph Algorithms](https://neo4j.com/docs/graph-algorithms/current/)
- [APOC](https://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/)
- [Java Reference](https://neo4j.com/docs/java-reference/current/)
| | |
|---|---|
| | perform a find operation on mongodb collection |
| `CALL apoc.mongodb.count(host-or-port,db-or-null,collection-or-null,query-or-null) yield value` | perform a find operation on mongodb collection |
| `CALL apoc.mongodb.first(host-or-port,db-or-null,collection-or-null,query-or-null,[compatibleValues=true|false]) yield value` | perform a first operation on mongodb collection |
| | perform a find,project,sort operation on mongodb collection |
| `CALL apoc.mongodb.insert(host-or-port,db-or-null,collection-or-null,list-of-maps)` | inserts the given documents into the mongodb collection |
| `CALL apoc.mongodb.delete(host-or-port,db-or-null,collection-or-null,list-of-maps) yield value` | deletes the given documents from the mongodb collection and returns the number of affected documents |
| `CALL apoc.mongodb.update(host-or-port,db-or-null,collection-or-null,list-of-maps) yield value` | updates the given documents from the mongodb collection and returns the number of affected documents |
If your documents have date fields or any other type that can be automatically converted by Neo4j, you need to set **compatibleValues** to true. These values will be converted according to Jackson databind default mapping.
Copy these jars into the plugins directory:
- bson-3.4.2.jar
- mongo-java-driver-3.4.2.jar
- mongodb-driver-3.4.2.jar
- mongodb-driver-core-3.4.2.jar
You should be able to get them from [here](https://mongodb.github.io/mongo-java-driver/), and [here (BSON)](https://mvnrepository.com/artifact/org.mongodb/bson/3.4.2) (via Download)
Or you get them locally from your gradle build of apoc.
```
gradle copyRuntimeLibs
cp lib/mongodb*.jar lib/bson*.jar $NEO4J_HOME/plugins/
```
```
CALL apoc.mongodb.first('mongodb://localhost:27017','test','test',{name:'testDocument'})
```
If you need automatic conversion of **unpackable** values then the cypher query will be:
```
CALL apoc.mongodb.first('mongodb://localhost:27017','test','test',{name:'testDocument'},true)
``` |
| Shard | 143 (laksa) |
| Root Hash | 2566890010099092343 |
| Unparsed URL | io,github!neo4j-contrib,/neo4j-apoc-procedures/3.5/database-integration/mongodb/ s443 |