Closed cjohn001 closed 2 years ago
Im also stuck here. How do we use Keycloak Schema directives with the new interface ?
This has been documented in the README:
https://github.com/aerogear/keycloak-connect-graphql#apollo-server-express-3-support
so I guess this ticket can be closed.
Yes, indeed can be closed
Hello together, i am currently trying to upgrade my backend. As i have read the open issue with apollo server 3 I thought I only migrate up to "apollo-server-express": "2.25.2" as long as the issue is not fixed.
I just found that when I migrate from "graphql-tools": 7.x to 8.x than the KeycloakSchemaDirectives break. I am getting the following error message:
My code:
I also tried passing directives as array, like described in the comment in code schemaDirectives:[KeycloakSchemaDirectives] but this also does not work. Would be great if someone could explain how to use the KeycloakSchemaDirectives with graphql-tools 8 onwards.
I found this article, seems like graphql-tools changed its interface for directives. However, did not help me to get it running. https://community.apollographql.com/t/what-is-up-with-schema-directives-right-now/1031/3