Skip to content

Commit

Permalink
Merge pull request #9 from shrutimantri/add-mongo-bulk-doc
Browse files Browse the repository at this point in the history
fix(docs): improve the doc by providing sample inputs
  • Loading branch information
anna-geller authored Jul 9, 2024
2 parents d20198e + 5adcb3d commit 9e67c09
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/io/kestra/plugin/mongodb/Bulk.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
@Getter
@NoArgsConstructor
@Schema(
title = "Execute [Bulk](https://www.mongodb.com/docs/manual/reference/method/Bulk/) request in MongoDB."
title = "Execute [Bulk](https://www.mongodb.com/docs/manual/reference/method/Bulk/) request in MongoDB.",
description = """
Here are the sample file contents that can be provided as input to Bulk task:
```
{ "insertOne" : {"firstName": "John", "lastName": "Doe", "city": "Paris"}}
{ "insertOne" : {"firstName": "Ravi", "lastName": "Singh", "city": "Mumbai"}}
{ "deleteMany": {"filter": {"city": "Bengaluru"}}}
```
"""
)
@Plugin(
examples = {
Expand Down

0 comments on commit 9e67c09

Please sign in to comment.