Seb Jachec
08/02/2022, 9:52 AMpaginationArgs
as part of a field policy at the moment? I assume there are benefits (or will be benefits to come down the line?) 😄mbonnin
08/02/2022, 9:54 AMpaginationArgs
are ignored when computing the cache key for a given objecttype Query @fieldPolicy(forField: "authors", paginationArgs: "first, after") {
authors: [Author]
}
And this query:
{
authors(first: 50, after: 0) {
id
}
}
Then the cache key will always be computed as QUERY_ROOT.authors
(instead of QUERY_ROOT.authors({"first": 50, "after": 0})
)Seb Jachec
08/02/2022, 10:00 AMmbonnin
08/02/2022, 10:08 AM