Created
December 7, 2021 16:09
-
-
Save isocroft/9f84de0d80a41d44dbafd9f9cbe18e2e to your computer and use it in GitHub Desktop.
HTTP caching directive
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 User { | |
name: String! | |
age: Int! | |
salary: Float! | |
} | |
type Query { | |
getAllUsers (id: ID!, page: Int!, pageSize: Int!): [User!] @httpCached(action: "check", freshness: 1, validation: 0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment