Write content to one file of the database as JSON in the configured format (see jsonText), replacing the file if it
exists. Its folder must already exist (see makeDirectory). The file is replaced whole or not at all (see
writeAtomically). During a statement the write waits in its write set until the statement succeeds (see
withWriteSet). Node only.
Parameters
path: string
A path inside the database, such as users.json.
content: any
Anything JSON.stringify accepts.
Optionalformat: "compact"|"pretty"
Defaults to the configured format (see configure).
Write
contentto one file of the database as JSON in the configured format (see jsonText), replacing the file if it exists. Its folder must already exist (see makeDirectory). The file is replaced whole or not at all (see writeAtomically). During a statement the write waits in its write set until the statement succeeds (see withWriteSet). Node only.