select

fun select(selection: Selectable, vararg additionalSelections: Any): Pipeline(source)

Replaces the documents with selection and additionalSelections (selectables or field names).


fun select(fieldName: String, vararg additionalSelections: Any): Pipeline(source)

Replaces the documents with the field fieldName and additionalSelections (selectables or field names).