You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The check is synchronous — a WeakMap lookup — so a field it guards resolves
without a promise, and it needs no cache: it is already cheaper than a
cache hit. Put it first in a race so the fallback check only runs for rows
that arrived some other way:
On its own it is deny-by-default: a Post that no granting field returned —
one reached through a field that does not grant, or a root field's parent,
which is no object at all — is denied. That is what makes it a scope
rather than a bypass. Use race / or when the type is also reachable by
paths that should authorize it themselves.