Hi! I experience the following error when using this script to convert schema on windows 10 Node.js command prompt.
parseServerSchema2dbml -i D:\Project_Lockdown_SCHEMA.json -o D:\Project_Lockdown_SCHEMA.dbml
Converting: D:\Project_Lockdown_SCHEMA.json to D:\Project_Lockdown_SCHEMA.dbml
C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\index.js:47
_SCHEMA.forEach(parseClass => {
^
TypeError: _SCHEMA.forEach is not a function
at convert (C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\index.js:47:13)
at Command. (C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\index.js:175:9)
at Command.listener [as _actionHandler] (C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\node_modules\commander\index.js:413:31)
at Command._parseCommand (C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\node_modules\commander\index.js:914:14)
at Command.parse (C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\node_modules\commander\index.js:717:10)
at Object. (C:\Users\monvk\AppData\Roaming\npm\node_modules\parse-server-schema-to-dbml\index.js:178:9)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Would you help looking at what caused the issue? We used stoplight.io to generate .json file instead of using mongoexport command.
Hi! I experience the following error when using this script to convert schema on windows 10 Node.js command prompt.
Would you help looking at what caused the issue? We used stoplight.io to generate .json file instead of using mongoexport command.