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
In the first code example under Custom middleware example, in the first function:
def lowercase_middleware(resolver, obj, info, **args): if iscoroutinefunction(resolver): return lowercase_middleware_async(resolver, obj, info, **args) value = resolver(obj, info, **args) if is_awaitable(value): return lowercase_awaitable(value) return lowercase_value(await value)
Is the await value on the last line a mistake? You can't say await in a regular function, right?
await value
await
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the first code example under Custom middleware example, in the first function:
Is the
await value
on the last line a mistake? You can't sayawait
in a regular function, right?The text was updated successfully, but these errors were encountered: