We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onUpdate method of FireCollection/FireSubCollection should contain params in WriteOptions.
onUpdate
FireCollection/FireSubCollection
WriteOptions
so we can do
onUpdate(object: any, { write, params }: WriteOptions) { const ref = doc(this.db, `collection/${params.parentId}/subcollection/${object.id}`); }
Possible resolution (not tested) : https://github.com/dappsnation/ngfire/blob/master/libs/ngfire/firestore/src/collection.ts#LL426C15-L426C61 and https://github.com/dappsnation/ngfire/blob/master/libs/ngfire/firestore/src/collection.ts#L447
await this.onUpdate(data, { write: tx, ctx, params: options.params });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
onUpdate
method ofFireCollection/FireSubCollection
should contain params inWriteOptions
.so we can do
Possible resolution (not tested) :
https://github.com/dappsnation/ngfire/blob/master/libs/ngfire/firestore/src/collection.ts#LL426C15-L426C61
and
https://github.com/dappsnation/ngfire/blob/master/libs/ngfire/firestore/src/collection.ts#L447
The text was updated successfully, but these errors were encountered: