Closed kevcodez closed 1 year ago
This should be purely a postgrest-js
issue. postgREST does allow quoting when using the arrow operators:
curl 'localhost:3000/complex_items?select=settings->foo->"bar"'
[{"bar":"baz"},
{"bar":"baz"},
{"bar":"baz"}]
@steve-chavez +1 - the code executes just fine, it's only the types that are off 👌
I think, this also got fixed by https://github.com/supabase/postgrest-js/commit/c69ef50e633e5bf96da8856d769b9f9a11b0e34d .
Yup, looking good @tvogel 🥳
Bug report
Describe the bug
When selecting a JSONB field using
jsonb_column->"field_name"
, the type cannot be determined. Whereas usingjsonb_column->field_name
works.To Reproduce
Expected behavior
The type should be parsed correctly, even when using double quotes.