Open
Description
Hi. I recently used this library and really enjoy it. I wonder if there's anyway if we can pass data from a resolver to another.
For example, let's say I have a resolver isStatusOwnerResolver
like this:
export const isStatusOwnerResolver = isAuthenticatedResolver.createResolver(
async (root, { statusId }, { userId, models: { Status } }) => {
const status = await Status.findById(statusId)
if (status.ownerId.toString() !== userId) {
throw new NotStatusOwnerError()
}
},
)
Is there anyway I can pass status
to the resolver that is chained from isStatusOwnerResolver
?
Metadata
Metadata
Assignees
Labels
No labels