Replies: 2 comments 8 replies
-
Is it a big inconvenience having to do Or is this with dynamic input - eg I don't think I'm against adding eg. an |
Beta Was this translation helpful? Give feedback.
8 replies
-
There is no easy way to differentiate between a sql What would be the recommended way to handle this in the current paradigm? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Undefined values throwing error and preventing successful query is inconvenient and unintuitive to me, if I pass a field with an undefined value I expect it to act as NULL, it seems that would make sense to treat it that way? Can we at least have option to map undefined to NULL so I don't need to check every field? I can't think of a case where it's better to throw error instead of act as NULL. It breaks queries where undefined could be a possible value.
undefined
most clearly maps to the NULL sql value so I think it should do this automaticallyhttps://github.com/porsager/postgres/blob/master/cjs/src/types.js#L79
Beta Was this translation helpful? Give feedback.
All reactions