MongoDB
Target Configuration
For all actions, the target should have a property databaseName
Mongo target example | |
---|---|
- Valid properties are
username
oruser
. Set this for basic authentication - Valid properties are
userPassword
orpassword
. Set this for basic authentication
Collection Example
Count🔗
!!! info Browse implementations
Required | Name | Type | Default |
---|---|---|---|
* | target |
String | |
* | collection |
String | |
* | query |
String |
Name | Type |
---|---|
count |
long |
Example🔗
Delete🔗
!!! info Browse implementations
Required | Name | Type | Default |
---|---|---|---|
* | target |
String | |
* | collection |
String | |
* | query |
String |
Name | Type |
---|---|
deletedCount |
long |
Example🔗
Find🔗
!!! info Browse implementations
Required | Name | Type | Default |
---|---|---|---|
* | target |
String | |
* | collection |
String | |
* | query |
String | |
limit |
Integer | 20 |
Name | Type |
---|---|
documents |
List<String> |
Example🔗
Insert🔗
!!! info Browse implementations
Required | Name | Type | Default |
---|---|---|---|
* | target |
String | |
* | collection |
String | |
* | document |
String |
Insert action does not have output.
Example🔗
List Collections🔗
!!! info Browse implementations
Required | Name | Type | Default |
---|---|---|---|
* | target |
String |
Name | Type |
---|---|
collectionNames |
List<String> |
Example🔗
Update🔗
!!! info Browse implementations
Required | Name | Type | Default |
---|---|---|---|
* | target |
String | |
* | collection |
String | |
* | filter |
String | |
* | update |
String | |
arrayFilters |
List<String> |
Note
ArrayFilters are supported since MongoDB v3.5.12+ (https://jira.mongodb.org/browse/SERVER-831)
Name | Type |
---|---|
modifiedCount |
long |