Add multi-line / block comments to PSL / schema.prisma file
See original GitHub issueProblem
The schema.prisma
file is becoming large. I’d like to group models by their general categories, as well as add more detailed explanations to each model, and to do that, I generally use block comments. However, these are presently not recognized in the schema file.
Suggested solution
Let us not only use line comments (which already works):
// This is a line comment
but also block comments in our schema.prisma
file:
/*
* This is a block comment, but is currently not recognized as a comment
*/
Issue Analytics
- State:
- Created 3 years ago
- Reactions:20
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Prisma schema (Reference)
The Prisma schema is the main configuration file when using Prisma. It is typically called schema.prisma and contains your database connection and data ......
Read more >Adding Comments to the Schema | RedwoodJS Docs
Add a model to schema.prisma; Run a yarn rw prisma migrate dev commands to create a migration and apply it to the database;...
Read more >With Prisma, How can we add a comment for a Type?
If I cheat and add a comment in the generated-schema.graphql (this file will be overridden after the next prisma deploy ).
Read more >Multi-Line Comment in Shell Script - GeeksforGeeks
In Shell or Bash shell, we can comment on multiple lines using << and name of comment. we start a comment block with...
Read more >Untitled
#met Engine block machining video, Cornrows front box braids back, Shahiduzzaman firoz, ... Ceo members, 23 hour fitness pleasanton, File quota management, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Prisma team 👋🏼
Any updates about this? Apart from what the OP stated, it would be really useful to implement new (or existing) docs generators with detailed descriptions of each model.
Thanks!
Any movement on this item? Very interested in seeing this.