supabase-js icon indicating copy to clipboard operation
supabase-js copied to clipboard

TS `ParserError` for spread operation in `select`

Open xiaohai-huang opened this issue 1 year ago • 0 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] 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 avatar Mar 16 '24 03:03 xiaohai-huang