-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
1. Version info
Angular: 5.2.0
Firebase: 4.12.0
AngularFire: 5.0.0-rc.6
Node: 8.9.3
Other (e.g. Ionic/Cordova, Node, browser, operating system): Windows 10
2. How to reproduce these conditions
Find all the source code and credentials to a sanitized Firestore project here: StackBlitz
2.1 Steps to set up and reproduce
- Create a new Firestore project and bind to an Angular App
- Create a reference to a new collection and try to add a persisted ID as specified in the documentation:
const id = this.afs.createId();
const item: Item = { id, name };
this.itemsCollection.add(item);
2.2 Actual Behavior
2.3 Expected behavior
Credentials are available in the StackBlitz project
2.4 Solution
The desired behavior can be achieved like this. So either there's a real issue, or the docs are outdated 🤔
const id = db.createId();
const user = { name:'juan' };
users.doc(id).set({ name: 'juan' });
NELBNL
Metadata
Metadata
Assignees
Labels
No labels