select ( pred icate . eq (: name , ▁" Ste ve "). and ( pred icate . eq (: role , ▁" manager ") ). an _ element () ▁▁▁ ▁# ▁display ▁the ▁names ▁of ▁his ▁direct ▁reports . ▁name ▁is ▁a ▁field ▁( or ▁column ) ▁▁ ▁# ▁on ▁the ▁employee ▁collection ▁( or ▁table ) ▁▁ ▁_ for ▁employee ▁_ over ▁ste ve . direct _ re ports . elements () ▁▁ ▁_ loop ▁▁▁▁▁ ▁write ( employee . name ) ▁▁ ▁_ end loop ▁ ▁Perform ing ▁a ▁transaction : ▁▁▁ ▁# ▁each ▁key ▁in ▁the ▁hash ▁table ▁corresponds ▁to ▁the ▁name ▁of ▁the ▁field ▁( or ▁column ) ▁in ▁▁ ▁# ▁the ▁collection ▁( or ▁table ) ▁▁ ▁val ve _ data ▁<< ▁hash _ table . new _ with ( ▁▁▁▁ ▁: asset _ id , ▁ 5 7 6 4 8 5 7 6 , ▁▁▁▁ ▁: material , ▁" I ron ") ▁▁▁ ▁# ▁get ▁the ▁val ve ▁collection ▁directly ▁▁ ▁val ve _ collection ▁<< ▁my _ application . database . collection (: g is , ▁: val ve ) ▁▁▁ ▁# ▁create ▁an ▁insert ▁transaction ▁to ▁insert ▁a ▁new ▁val ve ▁record ▁into ▁the ▁collection ▁a ▁▁ ▁# ▁comment ▁can ▁be ▁provide ▁that ▁describes ▁the ▁transaction ▁▁ ▁transaction ▁<< ▁record _ transaction . new _ insert ( val ve _ collection , ▁val ve _ data , ▁" Insert ed ▁a ▁new ▁val ve ") ▁▁ ▁transaction . run () ▁ ▁See ▁also