Open masda70 opened 9 months ago
No update on this?
@masda70 did you find a workaround or did you just use .returns<...>()
?
@nielsvanrijn I ended up not using the spread operator. I did retry using it 2 months ago, but noticed no difference in behavior.
This should be fixed in https://github.com/supabase/postgrest-js/pull/497, which was released just about 2 months ago. If you upgrade to the latest version, this should be working fine.
Bug report
Describe the bug
Spreading related tables, as described in this article , are not properly typed.
yields
ParserError<"Expected identifier at ...technical_specs (camera, laboratory, duration)
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The type should be
{title: string, camera: string, laboratory: string, duration: string}[] | null
System information