Open ghost opened 7 years ago
Not right now, no. You can do this by adding @attr
to every field in your types.
Implementing it shouldn't be a big issue though, since it would just require patching attributeName
in dpq/attributes.d
file. I'll try to find some time for it, but no promises since I've been really busy lately.
I understand completely. Wondering if you'd be open to a pull request for this feature. I'd like it to be set top level somewhere, like when the DB is connected to. Not sure if that's possible because I haven't looked that deep, but I were to would that be okay with you? Wouldn't seem messy or anything?
Definitely open to a pull request for this, but I'd prefer a compile-time solution, like the current underscoring. Thanks!
For sake of consistency across my front end, back end and all other, I noticed that the camel case to underscore is causing a bit of extra work. (I also use a nodejs script that sends pg data strait to the browser)
Is there an easy way to switch this off without adding relations to each field?