Last active
March 8, 2026 02:48
-
-
Save gmac/15cd52ea5d6836bc976b9e5b01067ecd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # DEPTH RESOLVER (receive and return one) | |
| def resolve(object, args, context) | |
| object["item"] | |
| end | |
| # BREADTH RESOLVER (receive and return many) | |
| def resolve(objects, args, context) | |
| objects.map { |object| object["item"] } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment