withProjection

open override fun withProjection(newProjection: Projection): ISingleQuery

Creates a new SingleQuery with the specified projection.

Return

A new SingleQuery with the updated projection.

Parameters

newProjection

The new projection to apply.