-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for .stream of a query (QueryReference) #122
Comments
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. |
Ouvir
--
rpc Listen(ListenRequest) returns (ListenResponse)Ouve as mudanças. Este método está disponível apenas via gRPC ou WebChannel (não REST).Escopos de autorizaçãoRequer um dos seguintes escopos de OAuth:https://www.googleapis.com/auth/datastorehttps://www.googleapis.com/auth/cloud-platformPara saber mais, consulte a Visão geral da autenticação.
Ouvir
rpc Listen([ListenRequest](https://firebase.google.com/docs/firestore/reference/rpc/google.firestore.v1?hl=pt-br#google.firestore.v1.ListenRequest)) returns ([ListenResponse](https://firebase.google.com/docs/firestore/reference/rpc/google.firestore.v1?hl=pt-br#google.firestore.v1.ListenResponse))
Ouve as mudanças. Este método está disponível apenas via gRPC ou WebChannel (não REST). Escopos de autorização https://www.googleapis.com/auth/datastore |
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.The text was updated successfully, but these errors were encountered: