Replace SubscriptionQueryResult with Axon Framework 5's subscription query Publisher
ProprietaryAxon 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. MigrateSubscriptionQueryResultmod run . --recipe= io. moderne. axon. MigrateSubscriptionQueryResultInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.