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

TS ParserError for spread operation in select #988

Open
2 tasks done
xiaohai-huang opened this issue Mar 16, 2024 · 0 comments
Open
2 tasks done

TS ParserError for spread operation in select #988

xiaohai-huang opened this issue Mar 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xiaohai-huang
Copy link

xiaohai-huang commented Mar 16, 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

See the screenshot below.

To Reproduce

https://github.com/FHFHockey-dev/fhfhockey.com/blob/101a0533f56581e1c699f9a7ccad2c9f856c1053/web/components/LineCombinations/utilities.ts#L45

 const { data: lineCombinations } = await supabase
    .from("lineCombinations")
    .select(
      "gameId, teamId, forwards, defensemen, goalies, ...games (startTime)"
    )
    .eq("teamId", teamId)
    .in("gameId", [last10Games[0].id, last10Games[1].id])
    .order("games(startTime)", { ascending: false })

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

image

System information

  • OS: Windows
  • VSCode
  • Version of supabase-js: 2.39.8
  • Version of Node.js: v20.11.1
@xiaohai-huang xiaohai-huang added the bug Something isn't working label Mar 16, 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