Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.pathselect

select

inline fun <T> ERROR CLASS: Symbol not found for Bson.select(field: Field<*, T>): ERROR CLASS: Symbol not found for Sequence

Finds all values that match field in a given Bson.

To learn more about the syntax, see BsonPath.

Example

val document: Bson = 

document.select(User::profile / Profile::name)

will return a sequence of all values matching the path profile.name.

See also

  • at Select a single value.