ThenableReference interface

APromise that can also act as aDatabaseReference when returned bypush(). The reference is available immediately and thePromise resolves as the write to the backend completes.

Signature:

exportdeclareinterfaceThenableReferenceextendsDatabaseReference,Pick<Promise<DatabaseReference>,'then'|'catch'>

Extends:DatabaseReference, Pick<Promise<DatabaseReference>, 'then' | 'catch'>

Properties

PropertyTypeDescription
keystring
parentDatabaseReference

ThenableReference.key

Signature:

key:string;

ThenableReference.parent

Signature:

parent:DatabaseReference;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-24 UTC.