Type validation for query filter values in supabase-js #32677
kamilogorek
announced in
Changelog
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you are using our TypeScript SDK with automatically generated types, you are in for a treat.
Starting version
2.47.12
, our@supabase/supabase-js
SDK will correctly validate all query filter values ineq
,neq
andin
methods. Including not only primitives, but enums as well. In both tables, views, and arbitrarily-nested relations.When using enums, LSP auto-completion also works out-of-the-box now.
Want to start using them? See our guides for how to get started:
https://supabase.com/docs/guides/api/rest/generating-types
https://supabase.com/docs/reference/javascript/typescript-support
Beta Was this translation helpful? Give feedback.
All reactions