Allow New Lines in supabase client Select Statements #26746
Unanswered
swamidass
asked this question in
Feature Requests
Replies: 0 comments
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.
The select strings are excellent and useful in supabase, allowing embedded resources. However, this creates very nested strings:
This can can become very long. Ideally, we would be able to format these strings with returns and spaces so they can be better understood by normal humans:
That's readable, and we remove the new lines and the extra whitespace, it works as a supabase select string. However, the newlines all cause parser exceptions, so it can't be used.
Workarounds I've tried don't work. Creating a string like this and replacing the newlines with spaces works great at runtime, but it breaks typscript type inference. So that isn't really workable.
All reactions