how can i reliably get a delegate name from a mode...
# orm-help
n
how can i reliably get a delegate name from a model name in my custom generator? given model name
UserThing
i want
userThing
. i can just camelcase-and-pray for now, but i was hoping there was a more coupled-to-Prisma way to get the delegate name? i don't see it in the dmmf document or
options
. (which makes sense, because i guess it's more owned by the js client generator than the schema tools...)
n
Hey Nic 👋 I think this might help, By default the name of the property is the lowercase form of the model name, e.g.
user
for a
User
model or
post
for a
Post
model.