Skip to content

Conversation

@sothawo
Copy link
Collaborator

@sothawo sothawo commented Oct 9, 2021

it works now with:

Query query = Query.multiGetQueryWithRouting(
  Arrays.asList(
    new Query.IdWithRouting(ID_1, ROUTING_1),
    new Query.IdWithRouting(ID_2, ROUTING_2),
    new Query.IdWithRouting(ID_3, ROUTING_3)
    )
);

List<MultiGetItem<RoutingEntity>> multiGetItems = operations.multiGet(query, RoutingEntity.class);

Closes #1954

@sothawo sothawo merged commit 2450d57 into spring-projects:main Oct 9, 2021
@sothawo sothawo deleted the #1954-multiget-with-routing branch October 9, 2021 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support different routing for each id in multiget

1 participant