toObject

abstract fun <T, U> QueryState<T>.toObject(query: QueryRef<T>, select: (T) -> U): QueryObject<U>

Converts the given QueryState to QueryObject.

Return

The converted object.

Parameters

query

The query reference.

select

A function that selects the object from the reply.