Hey guys ... apologies if this question has been a...
# orm-help
g
Hey guys ... apologies if this question has been asked here before (but, couldn't find answers when googling) ... I'm looking for a way to auto-convert snake_case to camelCase when introspecting my DB. The docs mention the
@map
directive, but it seems that one will have to do it manually for every field in every table. Also, when schema changes are applied on the database,
prisma introspect
will override the hand coded changes in
prisma.schema
. Any advice?
r
Hey @go4cas 👋 @Thomas Ladd has created just the script for that 🙂 This script will add the
@map
directive and also you can run this as a postscript to
prisma introspect
g
Brilliant! Thanks @Ryan / @Thomas Ladd
🙌 1