# How to project a subset of properties?
Inorder to project a subset of properties in a collection while reading from the data-base, define the subset as a
selectioninside the collection definition in .kmongo.For example, to read only the name & designation:
collection Employee { property name:String property designation:String property dob:CalendarDate ... selection BasicInfo (name, designation) }run command
compileUse the respective find<SelectionName> to read the projected fields from the database.
Sample Usage:
def getEmployeesForDesignation(desig: String): List[String] = {
val empRowList = EmployeeQuery().designation.is(desig).findBasicInfo
empRowList.map(x => x.name)
}