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
{{ message }}
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
The documentation for the create method could be improved to explain exactly what "The write fails if the document already exists " means. Will the call throw an error ? If so it's not listed in throws. If it does nothing, then it should say it does nothing instead of "fails".
/** * Creates a document referred to by this `DocumentReference` with the * provided object values. The write fails if the document already exists * * @param data The object data to serialize as the document. * @throws Error If the provided input is not a valid Firestore document. * @return A Promise resolved with the write time of this create. */create(data: WithFieldValue<T>): Promise<WriteResult>;
The documentation for the create method could be improved to explain exactly what "The write fails if the document already exists " means. Will the call throw an error ? If so it's not listed in throws. If it does nothing, then it should say it does nothing instead of "fails".