Replies: 1 comment 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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