Open dshukertjr opened 1 year ago
+1 to this. Its seems like the chaining of methods is mutating the original query, so you can't re-use it.
Having same issue :(
Same issue - It would be great when I have a join and end up generating a type for it, I could do those once somewhere where I can export the query and type so I'm not doing the same thing over and over again; however this makes that very awkward because only the type is reusable and not the query.
Bug report
Describe the bug
Storing part of a query in a variable is a common pattern in Firebase development. Right now because our client library is not immutable, when you try to do this with Supabase client library, some of the information is kept in the original instance causing unexpected behaviors.
Expected behavior
Storing part of a query in a variable and running multiple queries using it should return the proper data.
Additional context
Maybe this is something to keep in mind when doing the next major release.