mgeneratejs icon indicating copy to clipboard operation
mgeneratejs copied to clipboard

Generate rich random data based on a JSON template file.

Results 12 mgeneratejs issues
Sort by recently updated
recently updated
newest added

Hi, If I use "$inc" more than one time, it continues to increase by using the previous $inc value. **version 0.5.1** in MacOs Catalina. ` "accountId": { "$inc": { "start":...

I'm a bit confused by the point of `$pick`. I have an example like: ``` "$pick": { "array": [ "75009", "75010", "75008", "75011" ] } ``` and had assumed that...

I'm executing `mgeneratejs` via `cron` and receive `SyntaxError: Unexpected end of JSON input`. This does not happen if I execute the script directly: `mgenerate.sh` script contents ``` mgeneratejs '{"name": "$name",...

Basically, provide a means to define variables, in the same fashion as `$let` in MongoDB. This would be a great way to be able to define values which depend on...

This seems to work but creates ugly entries like `[{"$binary":"YTNhZTU0Y2ItZTczMS00YmEwLTk1ZmYtNDM5N2YxZmI5OWVk","$type":"4"}`. Any idea how I can customize the JSON output?

I'll try and make something work and do a PR

add command line flag `--faker-locale` to be set to `es` or [other supported locales](https://github.com/marak/Faker.js/#localization) so that users can generate language-specific random data.

Adds a new $maxcard operator and a global state that operators can write into, to persist data across generating multiple documents.

With the alias `$oid` it is not possible to express a constant ObjectId value, since the framework would ignore the value, even if a template included the ObjectId value. ```...