Creates a new DocumentReference instance.
Database instance.
Path to the document.
Optionalparent: CollectionReference<any>Parent collection.
Returns the CollectionReference for the collection at the specified path.
Deletes the document referred by this.
Reads the document for this.
Optionaloptions: { source: "server" }Checks whether this DocumentReference is equal to the provided one.
Returns true if both DocumentReference instances are the same.
Attaches callback to be executed on DocumentSnapshot events. This is related to real time listening where we are using long-polling by default.
( observer : { complete ?: ( ) => void ; error ?: ( error :
OracledbError ) => void ; next ?: ( snapshot : DocumentSnapshot => void ) )
( onNext : ( snapshot : DocumentSnapshot < T > ) => void , onError ? : ( error : OracledbError ) => void , onCompletion ? : ( ) => void )
Writes to the document.
OptionalsetOptions: { merge: boolean; mergeFields?: string[] }Custom data converter, allowing to use user defined classes with database instance. When get is called on the query the results are returned after applying the converter. Passing null will remove the current converter.
Object with two functions "fromOracledb" and "toOracledb". fromOracledb will be used to convert the json objects to user defined classes and toOracledb will be used to convert from user defined classes to json objects.
DocumentReference instance with converter.
DocumentReference - Represents a reference to a document.