We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
isStatusOwnerResolver
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?
status
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:Is there anyway I can pass
status
to the resolver that is chained fromisStatusOwnerResolver
?The text was updated successfully, but these errors were encountered: