Generates a Mermaid graph for the specified schema and injects it into the specified Markdown file. The generated graph is the visual representation of the database architecture inferred from your schema. You can specify where the graph is inserted within the file using the --startMarker and --endMarker options. For a detailed guide, see the full example below.
A marker that indicates the line after which the generated code should be
inserted. Make sure to use a string that is unique within the file. The line
containing the marker must be commented i.e. the marker needs to appear after
the <!-- (see example).
A marker that indicates the line before which the generated code should be
inserted. Make sure to use a string that is unique within the file. The line
containing the marker must be commented i.e. the marker needs to appear after
the <!-- (see example).
The orientation of the generated Mermaid graph. Can be either "vertical" or
"horizontal" which correspond to the "TB" and "LR" Mermaid options,
respectively.
To generate a Mermaid graph for the defined models and inject them between the typesync-start and typesync-end markers in the graph.md file, you can run the following command: