Created
August 3, 2017 06:43
-
-
Save anonymous/9aea45ed67b10762b18f49a229ba6bc1 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val categoriesFetcher: Fetcher[ShopRepository, Category, (Seq[CategoryId], Category), CategoryId] = Fetcher.relCaching( | |
(repo: ShopRepository, ids: Seq[CategoryId]) => repo.categories(ids), | |
(repo: ShopRepository, ids: RelationIds[Category]) => repo.categoriesByProducts(ids(categoriesForProductRelation)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment