mongo-seeding-cli
Advanced tools
Comparing version 3.6.0 to 3.7.0-alpha.0
@@ -74,2 +74,7 @@ "use strict"; | ||
{ | ||
name: 'remove-all-documents', | ||
description: 'Delete all documents from every collection that is being imported', | ||
type: Boolean, | ||
}, | ||
{ | ||
name: 'replace-id', | ||
@@ -157,2 +162,3 @@ description: 'Replaces `id` property with `_id` for every document before import', | ||
dropCollections: options['drop-collections'], | ||
removeAllDocuments: options['remove-all-documents'], | ||
}, | ||
@@ -205,2 +211,3 @@ cli: { | ||
dropCollections: env.DROP_COLLECTIONS === 'true', | ||
removeAllDocuments: env.REMOVE_ALL_DOCUMENTS === 'true', | ||
}, | ||
@@ -207,0 +214,0 @@ cli: { |
@@ -16,2 +16,3 @@ import { SeederConfig, SeederCollectionReadingOptions } from 'mongo-seeding'; | ||
'drop-collections'?: boolean; | ||
'remove-all-documents'?: boolean; | ||
'replace-id'?: boolean; | ||
@@ -18,0 +19,0 @@ 'set-timestamps'?: boolean; |
{ | ||
"name": "mongo-seeding-cli", | ||
"description": "The ultimate command line tool for populating your MongoDB database.", | ||
"version": "3.6.0", | ||
"version": "3.7.0-alpha.0", | ||
"license": "MIT", | ||
@@ -70,3 +70,3 @@ "keywords": [ | ||
"extend": "^3.0.2", | ||
"mongo-seeding": "^3.6.0", | ||
"mongo-seeding": "^3.7.0-alpha.0", | ||
"ts-node": "^9.1.1", | ||
@@ -109,3 +109,3 @@ "typescript": "^4.1.3" | ||
}, | ||
"gitHead": "27ae1a874ddee37c7f205cf74d7ed8045c40926e" | ||
"gitHead": "6d58a36b176d8cc3eff3ecaf69abf41406f875e5" | ||
} |
@@ -65,2 +65,3 @@ ![Mongo Seeding](https://raw.githubusercontent.com/pkosiec/mongo-seeding/master/docs/assets/logo.png) | ||
| `--drop-collections` | `false` | Drops every collection which is being imported | | ||
| `--remove-all-documents` | `false` | Delete all documents from every collection that is being imported | | ||
| `--replace-id` | `false` | Replaces `id` property with `_id` for every document during data import | | ||
@@ -89,2 +90,3 @@ | `--set-timestamps` | `false` | Sets `createdAt` and `updatedAt` timestamps for every document during data import | | ||
| `DROP_COLLECTIONS` | `false` | Drops every collection which is being imported | | ||
| `REMOVE_ALL_DOCUMENTS` | `false` | Delete all documents from every collection that is being imported | | ||
| `REPLACE_ID` | `false` | Replaces `id` property with `_id` for every document during import; useful for ORMs | | ||
@@ -91,0 +93,0 @@ | `SET_TIMESTAMPS` | `false` | Sets `createdAt` and `updatedAt` timestamps for every document during data import | |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
34897
413
95
1
Updatedmongo-seeding@^3.7.0-alpha.0