-
-
Save mxstbr/451f833962c9db8fd0de78f9d5ef8e3a to your computer and use it in GitHub Desktop.
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
type Participant { | |
# The complexity of getting one thread in a thread connection is 3, and multiply that by the amount of threads fetched | |
threadConnection(first: PaginationAmount, after: String): ThreadConnection @cost(complexity: 3, multipliers: ["first"]) | |
} | |
type Thread { | |
author: Author @cost(complexity: 1) | |
participants(first: PaginationAmount,...): [Participant] @cost(complexity: 2, multipliers: ["first"]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment