withProjection

open override fun withProjection(newProjection: Projection): SingleQuery

Creates a new SingleQuery with the specified projection.

Return

A new SingleQuery with the updated projection.

Parameters

newProjection

The new projection to apply.