You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I call useDocument to get some data: const { data } = useDocument<Items>("items/123");.
I get the following warning: [get-document] warning: Your document, 123 is using one of the following reserved fields: [exists, id, hasPendingWrites]. These fields are reserved. Please remove them from your documents.
The actual firestore document doesn't contain these fields.
What do I do wrong ? How can I get the actual saved document ?
The text was updated successfully, but these errors were encountered:
gwendall
changed the title
exists, id, hasPendingWrites warning
exists, id, hasPendingWrites warning from useDocument
Oct 26, 2020
If you use an id field in any of your documents, I suggest removing that. Firestore IDs should be confined to the ID of the document itself. If you want to include an ID field in the document, I recommend naming it something more specific.
I call
useDocument
to get some data:const { data } = useDocument<Items>("items/123");
.I get the following warning:
[get-document] warning: Your document, 123 is using one of the following reserved fields: [exists, id, hasPendingWrites]. These fields are reserved. Please remove them from your documents.
The actual firestore document doesn't contain these fields.
What do I do wrong ? How can I get the actual saved document ?
The text was updated successfully, but these errors were encountered: