Open matijs-toonen opened 1 year ago
This not only solves issues surrounding things like linters, but also improves both readability (as single line JSON files for big objects can be unreadable) and maintainability.
@matijs-toonen, can you create an ARCH-guild ticket as well?
Done, ticket is ARCHGUILD-174. Content is just a link to this issue
Issue
It is currently not possible to provide seed data in
JSON array
format. This results in seed data being provided in theMongoDB
custom format based onNewline-Delimited
JSON (streaming json) where every line is a new entry.Seed data in this format results in
JSON
files not being in validJSON files
. This results in issues when running things like linters on these files.Proposal
MongoDB
supports JSON entries in array format via the --jsonArray parameter in the command. This option can be provided with an additional environment variable likeMONGO_JSONARRAY
which is defaulted tofalse
forbackwards compatibility
.