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 May 26, 2022. It is now read-only.
module.exports={client: {service: {name: "project",// This option uses the resulting schema from makeAugmentedSchemaurl: "http://localhost:4001/graphql",skipSSLValidation: true,},}
When I run from my client npx apollo client:download-schema schema.graphql, I cannot find the isAuthenticated directive. Everything else, like neo4j directives, is shown properly.
It looks like a bug with graphql-auth-directives, but since no other user reported it, I suppose it's my setup that's incorrect, though I cannot figure this out on my own. Any idea?
The text was updated successfully, but these errors were encountered:
When querying directives with introspection from the chrome apollo plugin
{
__schema{
directives {
namedescription
}
}
}
I'm getting
{
"data": {
"__schema": {
"__typename": "__Schema",
"directives": [
{
"__typename": "__Directive",
"name": "cypher",
"description": ""
},
{
"__typename": "__Directive",
"name": "relation",
"description": ""
},
{
"__typename": "__Directive",
"name": "additionalLabels",
"description": ""
},
{
"__typename": "__Directive",
"name": "MutationMeta",
"description": ""
},
{
"__typename": "__Directive",
"name": "neo4j_ignore",
"description": ""
},
{
"__typename": "__Directive",
"name": "skip",
"description": "Directs the executor to skip this field or fragment when the `if` argument is true."
},
{
"__typename": "__Directive",
"name": "include",
"description": "Directs the executor to include this field or fragment only when the `if` argument is true."
},
{
"__typename": "__Directive",
"name": "deprecated",
"description": "Marks an element of a GraphQL schema as no longer supported."
}
]
}
},
"loading": false,
"networkStatus": 7,
"stale": false
}
It appears my isAuthenticated schema directive isn't read by makeAugmentedSchema
server:
in my client, apollo.config.js
When I run from my client
npx apollo client:download-schema schema.graphql
, I cannot find the isAuthenticated directive. Everything else, like neo4j directives, is shown properly.It looks like a bug with graphql-auth-directives, but since no other user reported it, I suppose it's my setup that's incorrect, though I cannot figure this out on my own. Any idea?
The text was updated successfully, but these errors were encountered: