prisma: Add multi-line / block comments to PSL / schema.prisma file
Problem
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
*/
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 49
- Comments: 15 (1 by maintainers)
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.
There is nothing additional to share. Our roadmap is at https://pris.ly/roadmap, but this is currently not part of it. (But I started an internal discussion about this now, actually could have used it this morning as well. So who know, good that roadmap is dynamic and easy to change 😄 )
Just found out multi-line comment doesn’t work. This feature would be really nice to have.
bump
I’d like this too. Not an expert on Rust, but can’t this be trivially implemented by adding to the grammar of the parser?
Yo! dev experience matters ✊🏼, please add block comments, schema it’s quickly becoming a mess