aerogear / keycloak-connect-graphql

Add Keyloak Authentication and Authorization to your GraphQL server.
Apache License 2.0
157 stars 23 forks source link

Couldn't find type auth in any of the schemas #87

Closed dakkafex closed 4 years ago

dakkafex commented 4 years ago

Im getting the following error trying to use the directives in my .graphql schema file

throw new Error("Directive " + directiveName + ": Couldn't find type " + directiveName + " in any of the schemas.");
                ^
Error: Directive auth: Couldn't find type auth in any of the schemas.

typeDefs: [KeycloakTypeDefs, "./src/schema.graphql"]

type Query {
    hello: String @auth
}
dakkafex commented 4 years ago

nvm, didnt know you can just directly put the directives in the original schema