ThenableReference interface

A Promise that can also act as a DatabaseReference when returned by push(). The reference is available immediately and the Promise resolves as the write to the backend completes.

Signature:

export declare interface ThenableReference extends DatabaseReference, Pick<Promise<DatabaseReference>, 'then' | 'catch'> 

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

Properties

Property Type Description
key string
parent DatabaseReference

Signature:

key: string;

ThenableReference.parent

Signature:

parent: DatabaseReference;

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

Last updated 2025-03-24 UTC.