-
Notifications
You must be signed in to change notification settings - Fork 33
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
Provide Document id when fetching a firestore collection #12
Comments
I see there is an |
Hey @MarcCoet Thanks for raising the issue, I added an Can you give it a try now ? I simplified a lot of the code that was a bit contrived. So please feel free to raise any more issues you face 👍 Cheers ! |
Hey @rakannimer . Thanks for your reactivity. Appart of that I will raise another issue for another part of the code but I will need to go back to my own implementation probably because I have a deadline in 2 days. ;) |
I'm running into the same issue. There seems to be no way to simply get all document keys for a given collection. |
For those like me who prefer to have it merged into one object ({ isLoading, value, error, ids }) =>
value
.map((v, i) => ({ v, id: ids[i] }))
.map(({id, name})=> (
<div key={id}>{name}</div>
)) |
Hi, having ids inside the same object would be wonderful! Currently I'm using a HOC to collect and merge the props before feeding into the dumb component.
|
Hey @rakannimer , I was trying out your lib to quickly build a Firebase project because I probably won't need any fancy feature for quite a while but got 'stuck' on what I see as a pretty basic use case.
I am querying a firestore collection and I want to update a document in that collection but I don't have the id...
It should be pretty easy to set a key for the metadata in each document of the array returned, something like
_metadata
or_documentMetadata
or whatever.I tried to make sense of the code but I have never used typescript and I am missing a few pointers to figure this out quickly enough.
Happy holidays :)
The text was updated successfully, but these errors were encountered: