Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I get the value of a directive on the schema? #260

Open
jarrod-mg opened this issue Jun 13, 2023 · 0 comments
Open

Can I get the value of a directive on the schema? #260

jarrod-mg opened this issue Jun 13, 2023 · 0 comments

Comments

@jarrod-mg
Copy link

What happened?

I think this might not be a supported feature; but I'm hoping there is a way to do this...

I provided a schema like the one below, and loaded it with LoadSchema.

What did you expect?

I expected to be able to get the value "myName" out of the *ast.Schema, somehow.

Minimal graphql.schema and models to reproduce

directive @myTag(name: String) on SCHEMA
schema @myTag(name: myName) {
    query: Query
}
type Query {
    thing (
        input: ThingInput
    ): ThingOutput
}
input ThingInput {
    id: ID
}
type ThingOutput {
    id: ID
}

versions

  • go list -m github.com/vektah/gqlparser/v2?
  • go version?
github.com/vektah/gqlparser/v2 v2.5.3
go version go1.20.5 linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant