Convert ParseServer classes as documents from MongoDB collection _SCHEMA to DBML (SQL by dbdiagram.io) tables to visualize relations between Parse classes.
Install Node.js, recommended >= v12.x with NVM
npm install -g parse-server-schema-to-dbmlmongoexport --uri="${MONGO_URI}" --collection _SCHEMA --jsonArray --out _SCHEMA.jsonNOTE: do not worry about DB data leak, _SCHEMA.json is part of .gitignore 😎
parseServerSchema2dbml -i _SCHEMA.json -o _SCHEMA.dbmlNOTE: do not worry about DB data leak, _SCHEMA.dbml is also part of .gitignore 😎
parseServerSchema2dbmlDefault values are ./_SCHEMA.json for the -i (--input) and ./_SCHEMA.dbml for the -o (--output) options.
Paste everything from _SCHEMA.dbml or other file defined at --output option to the empty or some existing diagram at the dbdiagram.io