package Ġme . rh ys xia . explore . server . graphql . loader Ċ Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġkotlinx . coroutines . flow . map Ċ import Ġme . rh ys xia . explore . server . configuration . graphql . Graph ql Mapped Batch Loader Ċ import Ġme . rh ys xia . explore . server . configuration . graphql . annotation . Graph ql Loader Ċ import Ġme . rh ys xia . explore . server . po . Category Po Ċ import Ġme . rh ys xia . explore . server . service . Category Service Ċ Ċ @ Graph ql Loader (" category ") Ċ class ĠCategory Loader ( private Ġval Ġcategory Service : ĠCategory Service ) Ġ: ĠGraph ql Mapped Batch Loader < Long , ĠCategory Po > Ġ{ ĊĊĠ Ġoverride Ġfun Ġload ( keys : ĠSet < Long >): ĠFlow < Pair < Long , ĠCategory Po >> Ġ{ ĊĠĠĠ Ġreturn Ġcategory Service . findAll ById ( keys ). map Ġ{ Ġit . id !! Ġto Ġit Ġ} ĊĠ Ġ} Ċ }