Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Apollo federation with type-graphql. This works, so far, by building the schema using
type-graphql
sbuildSchema
, and then passing the build schema into thebuildSubgraphSchema
, as well as an set of custom resolvers.The above mostly works, however when I'm attempting to add authorization to my project, using the
@Authorization
decorator / process from the type-graphql documentation, I'm hitting a road block: it doesn't seem like my authChecker is actually called.I haven't dug too deep into the
buildSchema
function yet, I am wondering if I can somehow make this auth function available in the service container or something...Anyway, hoping somebody might have an idea on how I can resolve this. If not, hopefully I'm able to find a workaround by stepping through buildSchema or something and I'll report back :). Thank you!
Beta Was this translation helpful? Give feedback.
All reactions