How can I filter results from a dataloader? #461
-
|
As is documented here, https://netflix.github.io/dgs/data-loaders/. I want to filter this list after the result is returned. This code calls the dataloader and immediatly returns it.
But I first need to filter the result before I return it, how is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can for example use There are probably nicer ways to write the same code, but this gives an idea of what you can do. |
Beta Was this translation helpful? Give feedback.
You can for example use
thenApplyon theCompletableFuture, which is similar tomapon a stream.There are probably nicer ways to write the same code, but this gives an idea of what you can do.