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
{{ message }}
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
I get a type error: Expected type 'Iterable[StrawberryDirective]', got 'list[IsAuthenticated]' instead
And an actual error: AttributeError: 'IsAuthenticated' object has no attribute 'arguments'.
Any thoughts?
The text was updated successfully, but these errors were encountered:
That directives argument in Schema is just so that you can pass directives that can be used by the client, like this one (strawberry has support for that but it is missing documentation)
There isn't an easy way to insert IsAuthenticated in all queries currently, but if you ensure that all queries inside the Query type and all mutations inside the Mutation type have this directive, then it should do what you need, since the root queries are required to retrieve any information below them
Hi there,
Instead of applying the
IsAuthenticated()
directive to individual fields, I'm looking to apply this to an entire schema.I'd wondered if this might work, but it doesn't:
I get a type error:
Expected type 'Iterable[StrawberryDirective]', got 'list[IsAuthenticated]' instead
And an actual error:
AttributeError: 'IsAuthenticated' object has no attribute 'arguments'
.Any thoughts?
The text was updated successfully, but these errors were encountered: