Query

actual open class Query(source)
expect open class Query(source)

The Query class (and its subclass, DatabaseReference) are used for reading data. Listeners are attached, and they will be triggered when the corresponding data changes.

Instances of Query are obtained by calling startAt, endAt, or limit on a DatabaseReference.

Inheritors

actual open class Query(source)
actual open class Query(source)
actual open class Query(source)

Properties

Link copied to clipboard
val Query.android: Query
val Query.android: Query
Link copied to clipboard
val database: Database
Link copied to clipboard
val Query.ios: FIRDatabaseQuery
Link copied to clipboard
val Query.js: Query
Link copied to clipboard
actual val valueEvents: Flow<DataSnapshot>
expect val valueEvents: Flow<DataSnapshot>
actual val valueEvents: Flow<DataSnapshot>
actual val valueEvents: Flow<DataSnapshot>
actual val valueEvents: Flow<DataSnapshot>

Functions

Link copied to clipboard
actual fun childEvents(vararg types: ChildEvent.Type): Flow<ChildEvent>
expect fun childEvents(vararg types: ChildEvent.Type = arrayOf(ADDED, CHANGED, MOVED, REMOVED)): Flow<ChildEvent>
actual fun childEvents(vararg types: ChildEvent.Type): Flow<ChildEvent>
actual fun childEvents(vararg types: ChildEvent.Type): Flow<ChildEvent>
actual fun childEvents(vararg types: ChildEvent.Type): Flow<ChildEvent>
Link copied to clipboard
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query
actual fun endAt(value: String, key: String?): Query
expect fun endAt(value: Boolean, key: String? = null): Query
expect fun endAt(value: Double, key: String? = null): Query
expect fun endAt(value: String, key: String? = null): Query

Creates a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default.

actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query
actual fun endAt(value: String, key: String?): Query
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query
actual fun endAt(value: String, key: String?): Query
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query
actual fun endAt(value: String, key: String?): Query
Link copied to clipboard
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query
actual fun equalTo(value: String, key: String?): Query
expect fun equalTo(value: Boolean, key: String? = null): Query
expect fun equalTo(value: Double, key: String? = null): Query
expect fun equalTo(value: String, key: String? = null): Query

Creates a query constrained to only return child nodes with the given value.

actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query
actual fun equalTo(value: String, key: String?): Query
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query
actual fun equalTo(value: String, key: String?): Query
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query
actual fun equalTo(value: String, key: String?): Query
Link copied to clipboard
actual fun limitToFirst(limit: Int): Query
expect fun limitToFirst(limit: Int): Query

Creates a query with limit and anchor it to the start of the window.

actual fun limitToFirst(limit: Int): Query
actual fun limitToFirst(limit: Int): Query
actual fun limitToFirst(limit: Int): Query
Link copied to clipboard
actual fun limitToLast(limit: Int): Query
expect fun limitToLast(limit: Int): Query

Creates a query with limit and anchor it to the end of the window.

actual fun limitToLast(limit: Int): Query
actual fun limitToLast(limit: Int): Query
actual fun limitToLast(limit: Int): Query
Link copied to clipboard
actual fun orderByChild(path: String): Query
expect fun orderByChild(path: String): Query

Creates a query in which child nodes are ordered by the values of the specified path.

actual fun orderByChild(path: String): Query
actual fun orderByChild(path: String): Query
actual fun orderByChild(path: String): Query
Link copied to clipboard
actual fun orderByKey(): Query
expect fun orderByKey(): Query

Creates a query in which child nodes are ordered by their keys.

actual fun orderByKey(): Query
actual fun orderByKey(): Query
actual fun orderByKey(): Query
Link copied to clipboard
actual fun orderByValue(): Query
expect fun orderByValue(): Query

Creates a query in which nodes are ordered by their value

actual fun orderByValue(): Query
actual fun orderByValue(): Query
actual fun orderByValue(): Query
Link copied to clipboard
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query
actual fun startAt(value: String, key: String?): Query
expect fun startAt(value: Boolean, key: String? = null): Query
expect fun startAt(value: Double, key: String? = null): Query
expect fun startAt(value: String, key: String? = null): Query

Creates a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default.

actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query
actual fun startAt(value: String, key: String?): Query
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query
actual fun startAt(value: String, key: String?): Query
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query
actual fun startAt(value: String, key: String?): Query
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String