You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-02 20:52:28 +02:00
7 lines
886 B
Plaintext
Vendored
7 lines
886 B
Plaintext
Vendored
# JSON data can also be passed as a path to a .json file
|
|
|
|
oint mongodb UpdateDocuments \
|
|
--dbc "mongodb://bayselonarrend:12we3456!2154@127.0.0.1:27017/?authSource=admin" \
|
|
--coll "new_collection" \
|
|
--updates "[{'q':{'category':'electronics'},'u':{'__4set':{'price':'888','discounted':true}},'multi':true,'upsert':false},{'q':{'category':'clothing'},'u':{'__4inc':{'quantity':'5'}},'multi':true,'upsert':false},{'q':{'category':'books'},'u':{'__4push':{'tags':'mass_update'}},'multi':true,'upsert':false},{'q':{'productName':'Special item from array'},'u':{'__4set':{'productName':'Special item from array','category':'special','price':'1111','quantity':'7','inStock':true,'createdDate':'01/06/2026 09:36:11'}},'multi':false,'upsert':true},{'q':{'rating':{'__4lte':'2'}},'u':{'__4set':{'needsImprovement':true},'__4inc':{'quantity':'-2'}},'multi':true,'upsert':false}]" \
|
|
--db "main" |