Replace SubscriptionQueryResult with Axon Framework 5's subscription query Publisher

Proprietary

Axon Framework 5 removed SubscriptionQueryResult. QueryGateway.subscriptionQuery(query, R.class) returns one Publisher<R> of the initial result followed by the updates. This turns a SubscriptionQueryResult whose initial result and updates have the same type, and that is returned as result.initialResult().concatWith(result.updates()), into Flux.from(queryGateway.subscriptionQuery(query, R.class)). Other uses are left for a person.

io.moderne.axon.MigrateSubscriptionQueryResult
mod run . --recipe=io.moderne.axon.MigrateSubscriptionQueryResult

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.