supabase / supabase-js

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
https://supabase.com
MIT License
2.83k stars 219 forks source link

Data has no return type when using geojson() #1021

Open norenz92 opened 2 weeks ago

norenz92 commented 2 weeks ago

Bug report

Describe the bug

When using const {data, error} = await supabase .from('table') .select() .geojson(); it returns data with type Record<string, unknown> | null. I expect it to return a GeoJson object with data of the correct type.

To Reproduce

Run the query const {data, error} = await supabase .from('table') .select() .geojson();

Expected behavior

I expect it to return a GeoJson object with data of the correct type.

Screenshots

System information

Additional context