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

gentype producing wrong type for inner join #595

Closed
2 tasks done
louisgv opened this issue Jul 19, 2023 · 1 comment
Closed
2 tasks done

gentype producing wrong type for inner join #595

louisgv opened this issue Jul 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@louisgv
Copy link

louisgv commented Jul 19, 2023

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 creating an inner join via a !inner(*) query, the inferred type returns an array, but the actual data is a single object.

To Reproduce

await supabase
      .from('deadwood')
      .select('*, cs!inner(*)')

Expected behavior

deadwood.cs should be typed correctly

System information

  • OS: macOS
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: 1.77.9
  • Version of Node.js: 18.x

Additional context

@louisgv louisgv added the bug Something isn't working label Jul 19, 2023
@sweatybridge
Copy link
Contributor

The underlying cause seems to be non-handling of unique constraint. Closing as a duplicate of #612

@sweatybridge sweatybridge closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2023
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

2 participants