Open penguisnt opened 1 year ago
If I remember correctly this is because at the time it wasn't possible to watch queries.
Is it possible now with the official SDK? If so, then it might make sense to regenerate the RPC code with the latest protobuffs and see if the methods are available.
Unfortunately I'm not able to do that myself, but would be happy to accept contributions.
To build stream from firestore, will need this.
The RPC stubs have been recently regenerated from the latest versions, so they may already be available in the project.
If that's the case, then it would be a simple plumbing issue. Contributions are, as always, welcome :-)
Whats the problem to build the stream document().snapshot(); ?
I want know how current step to help with some contribuitions.
How we can do some contribuition?
You might start by copying the query method and try to get the new one to return a Stream: https://github.com/cachapa/firedart/blob/master/lib/firestore/firestore_gateway.dart#L141
Currently, there is only .stream support for CollectionReference.stream and DocumentReference.stream, but if you put a query clause and get a
QueryReference
, it does not contain a.stream
method to observe the query.