package Ġgraphql . n adel . tests . hooks Ċ Ċ import Ġgraphql . n adel . N adel Ċ import Ġgraphql . n adel . engine . N adel Engine Execution Hooks Ċ import Ġgraphql . n adel . engine . blueprint . N adel Batch H yd ration Field Instruction Ċ import Ġgraphql . n adel . engine . blueprint . N adel Generic H yd ration Instruction Ċ import Ġgraphql . n adel . engine . transform . art ificial . N adel Alias Helper Ċ import Ġgraphql . n adel . engine . transform . result . json . JsonNode Ċ import Ġgraphql . n adel . tests . Engine Test Hook Ċ import Ġgraphql . n adel . tests . Use Hook Ċ Ċ private Ġclass ĠBatch H yd ration Hooks Ġ: ĠN adel Engine Execution Hooks Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠN adel Generic H yd ration Instruction > Ġget H yd ration Instruction ( ĊĠĠĠĠĠĠĠ Ġinstructions : ĠList < T >, ĊĠĠĠĠĠĠĠ Ġparent Node : ĠJsonNode , ĊĠĠĠĠĠĠĠ Ġalias Helper : ĠN adel Alias Helper , ĊĠĠĠĠĠĠĠ Ġuser Context : ĠAny ? ĊĠĠĠ Ġ): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinstructions [ 0 ] ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġ< T > Ġpartition Batch H yd ration ArgumentList ( ĊĠĠĠĠĠĠĠ Ġargument Values : ĠList < T >, ĊĠĠĠĠĠĠĠ Ġinstruction : ĠN adel Batch H yd ration Field Instruction ĊĠĠĠ Ġ): ĠList < List < T >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġargument Values . groupBy Ġ{ Ġ( it Ġas ĠString ). substring Before ("/") Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. values ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. toList () ĊĠĠĠ Ġ} Ċ } Ċ Ċ @ Use Hook Ċ class Ġ` batch ing - of - hyd ration - list - with - partition ` Ġ: ĠEngine Test Hook Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġmake N adel ( builder : ĠN adel . Builder ): ĠN adel . Builder Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġbuilder . service Execution Hooks ( Batch H yd ration Hooks ()) ĊĠĠĠ Ġ} Ċ } Ċ