Context for resolvers that require authentication (authorized: true). The userId is guaranteed to be non-null.
When you set authorized: true on a query() or field(), the resolver's ctx parameter is typed as AuthorizedContext
instead of Context, so you can safely access ctx.userId without null checks.
Context for resolvers that require authentication (
authorized: true). TheuserIdis guaranteed to be non-null.When you set
authorized: trueon aquery()orfield(), the resolver'sctxparameter is typed asAuthorizedContextinstead ofContext, so you can safely accessctx.userIdwithout null checks.