Projection

data class Projection(val include: List<String> = emptyList(), val exclude: List<String> = emptyList())

Data class representing field projection settings for queries.

Projection controls which fields are included in or excluded from query results. You can either specify fields to include (include list) or fields to exclude (exclude list), but not both. If both lists are empty, all fields are included.

Samples

Constructors

Link copied to clipboard
constructor(include: List<String> = emptyList(), exclude: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

List of field names to exclude from the results. Ignored if include list is non-empty.

Link copied to clipboard

List of field names to include in the results. If non-empty, only these fields will be returned.

Functions

Link copied to clipboard

Checks if this projection has no field filtering (includes all fields).