batchBySameSelection

suspend fun <T : NodeObject, C : SelectiveNodeExecutionContext<T>> batchBySameSelection(contexts: List<C>, resolve: suspend (Group<T, C, SelectionSet<T>>) -> Map<C, FieldValue<T>>): Map<C, FieldValue<T>>(source)

Partitions contexts by structurally equal complete selection sets and invokes resolve once for each group.

Each result key must match a context in the current group under normal map-key equality. Contexts omitted from the returned map remain omitted from the combined result.