Typing is incorrect when filtering by embedded attributes
Bug report
Describe the bug
Postgrest allows filtering by attributes on embedded resources, but the typings on the filter functions only support attributes on the selected table.
To Reproduce
This recreation would work when run with valid credentials, but the typings fail and cause a build error.
Expected behavior
Ideally, the function signatures would support type-safe paths in dot-notation, but it should at least not cause a build error.
Type safe paths are in theory possible with Typescript 4.1 (so would include a minor version bump for this project) as demonstrated here (broken down here).
I had a very brief go trying this but it didn't immediately work. Happy to give it more of a go if this is a desired approach by the team here.
Screenshots
System information
Not relevant
Thanks for opening the issue @samtgarson!
Type safe paths are in theory possible with Typescript 4.1
That looks pretty neat! We're currently swamped with the launch, but I'd be happy to get this in.
Just to update this for v2, this is still not implemented, although in the meantime we do fall back to generic string instead of giving a type error.