google-cloud-firestore

How do I make a query based on the return of another query in Angular with Firestore?

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-15 05:49:27
问题 Im trying to get some Ids from a collection, and then trying to use each of these Ids to get more data from another collection. Here is what I got done so far: Basically, I have blog app in which multiple users will be able to post an article. And said article has categories. The thing is, when a user selects a category to filter, it will bring me all USERS that have an article in said category (instead of bringing all articles of the selected category). So, in Firestore I have: categories/

How do I make a query based on the return of another query in Angular with Firestore?

梦想与她 提交于 2020-12-15 05:47:21
问题 Im trying to get some Ids from a collection, and then trying to use each of these Ids to get more data from another collection. Here is what I got done so far: Basically, I have blog app in which multiple users will be able to post an article. And said article has categories. The thing is, when a user selects a category to filter, it will bring me all USERS that have an article in said category (instead of bringing all articles of the selected category). So, in Firestore I have: categories/

addOnFailureListener not working in offline mode and network issues

不打扰是莪最后的温柔 提交于 2020-12-15 05:20:20
问题 addOnFailureListner does not work for add() data, but addOnFailureListner works for get(). This is not working WorkPlaceRef.add(DATA).addOnCompleteListener(new OnCompleteListener<DocumentReference>() { @Override public void onComplete(@NonNull Task<DocumentReference> task) { //Successfully created - This one triggers when I turn on wifi again. } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { // Error - This addonFailureListner is not

Failing to get a download URL from firebase storage(No object exists at the desired reference.)

回眸只為那壹抹淺笑 提交于 2020-12-15 05:15:46
问题 i have been trying to get the download URL for my images in firebase storage so I can add it to my listview builders "NetworkCatched Images" for each of my items in the list, as you can see from my code below, I first declared a variable at the beginning of my stateful class called "URL" so I could change the value by making it equal to the download URL i get from firebase storage, but it seems like the async function I'm using doesn't even run because i made sure it prints out the value of

Mapping data from two Firestore collections with js [duplicate]

女生的网名这么多〃 提交于 2020-12-15 04:56:13
问题 This question already exists : How to fetch data from two firestore collection, merge and display it Closed 22 days ago . I have two collections namely: CURRENCY-PAIR and Alerts . The CURRENCY-PAIR collection contains the following; Currency-Pair Name Currency-AskPrice Currency-BidPrice The Alerts collection contains the following: Alert_id Alert_Status How can i map the Currency-Pair Name from the CURRENCY-PAIR collection and Alert_Status from the Alerts collection to a list showing both.

Updating Firestore documents in Golang using structs (or protobuf messages) as data

我的未来我决定 提交于 2020-12-14 06:31:17
问题 Given the following API: syntax = "proto3"; service FooService { rpc UpdateFoo(UpdateFooRequest) returns (Foo) {} } message Foo { string name = 1; string description = 2; string action = 3; } message UpdateFooRequest { Foo foo = 1; // The list of fields to be updated. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2; } This API talks to a backend Firestore "foos" collection.

Updating Firestore documents in Golang using structs (or protobuf messages) as data

只愿长相守 提交于 2020-12-14 06:28:40
问题 Given the following API: syntax = "proto3"; service FooService { rpc UpdateFoo(UpdateFooRequest) returns (Foo) {} } message Foo { string name = 1; string description = 2; string action = 3; } message UpdateFooRequest { Foo foo = 1; // The list of fields to be updated. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2; } This API talks to a backend Firestore "foos" collection.

Updating Firestore documents in Golang using structs (or protobuf messages) as data

匆匆过客 提交于 2020-12-14 06:28:05
问题 Given the following API: syntax = "proto3"; service FooService { rpc UpdateFoo(UpdateFooRequest) returns (Foo) {} } message Foo { string name = 1; string description = 2; string action = 3; } message UpdateFooRequest { Foo foo = 1; // The list of fields to be updated. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2; } This API talks to a backend Firestore "foos" collection.

How do I fetch posts of users that the current signed in user is following

元气小坏坏 提交于 2020-12-13 18:01:15
问题 I am using Cloud Firestore to store my data for my app. I am having a problem with fetching posts from users that the current signed in user follows. I have structured by database like this Firestore-root | --- users (collection) | | | --- uid (documents) | | | --- name: "User Name" | | | --- email: "email@email.com" | --- following (collection) | | | --- uid (document) | | | --- userFollowing (collection) | | | --- uid (documents) | | | --- uid (documents) | --- posts (collection) | -------

How do I fetch posts of users that the current signed in user is following

好久不见. 提交于 2020-12-13 17:58:13
问题 I am using Cloud Firestore to store my data for my app. I am having a problem with fetching posts from users that the current signed in user follows. I have structured by database like this Firestore-root | --- users (collection) | | | --- uid (documents) | | | --- name: "User Name" | | | --- email: "email@email.com" | --- following (collection) | | | --- uid (document) | | | --- userFollowing (collection) | | | --- uid (documents) | | | --- uid (documents) | --- posts (collection) | -------