Hello guys, I was wondering if there’s a possibil...
# orm-help
h
Hello guys, I was wondering if there’s a possibility to add metadata to the models? My end goal is to be able to add some metadata to my models and use them later on after Prisma generates the client. If it’s not possible, is there a way to extend the PSL by writing some kind of plugin and telling Prisma compiler to use my plugin when it encounters the custom token?
n
Hey 👋 Could you use comments to add metadata? Will this work in your use case?
///
comments show up in the abstract syntax tree (AST) of the schema file as descriptions to AST nodes.
h
@Nurul Thanks for the insight, I am already aware of this feature but it’s unpractical in my case. Anyways, thanks for your help.
👍 1
n
If it helps you could create a Feature Request describing your use case and someone from our engineering team could have a look and can take things forward.