Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
norenz92 opened this issue Apr 18, 2024 · 0 comments
Open
2 tasks done

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

norenz92 opened this issue Apr 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@norenz92
Copy link

norenz92 commented Apr 18, 2024

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

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

  • OS: macOS
  • Browser (if applies): React Native (iOS)
  • Version of supabase-js: 2.42.4
  • Version of Node.js: 20.5.1

Additional context

@norenz92 norenz92 added the bug Something isn't working label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant