question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add multi-line / block comments to PSL / schema.prisma file

See original GitHub issue

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
 */

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:20
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
ajmnzcommented, Aug 11, 2021

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!

7reactions
chris-solis9commented, Mar 1, 2022

Any movement on this item? Very interested in seeing this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found