package Ġcom . david be jar c acer es . kotlin mongo Ċ Ċ import Ġorg . bson . types . ObjectId Ċ import Ġorg . springframework . data . mongodb . repository . Mongo Repository Ċ import Ġorg . springframework . data . rest . core . annotation . Repository Rest Resource Ċ Ċ @ Repository Rest Resource ( collection Resource Rel Ġ= Ġ" players ", Ġpath Ġ= Ġ" players ") Ċ interface ĠP layers Repository Ġ: ĠMongo Repository < Players , ĠString > Ġ{ ĊĠĠĠ Ġfun ĠfindBy _ id (_ id : ĠString ): ĠP layers ? ĊĠĠĠ Ġfun Ġfind ByName ( name : ĠString ): ĠList < Players >? ĊĠĠĠ Ġfun ĠfindBy D ni ( d ni : ĠString ): ĠP layers ? ĊĠĠĠ Ġfun ĠfindBy Last name ( lastname : ĠString ): ĠList < Players >? Ċ }