js-graphql-intellij-plugin
js-graphql-intellij-plugin copied to clipboard
Feature request: Support for StepZen directives
They are coming up as invalid.
For example, in a .graphql file (I already have the graphql plugin installed)
@materializer
https://stepzen.com/docs/custom-graphql-directives/directives#type-system-directives
I was able to solve this by manually creating a stepzen.graphql
file and adding the custom scalars, inputs, and directives
Short example (using just the directives I need for my schema)
directive @rest (endpoint: String!, configuration: String, resultroot: String, setters: [Setter], headers: [Header]) on FIELD_DEFINITION
directive @graphql (endpoint: String!, configuration: String, headers: [Header], prefix: Prefix) on FIELD_DEFINITION
directive @sdl (files: [String]) on SCHEMA
input Header {
name: String
value: String
}
input Setter {
field: String
path: String
}
input Prefix {
value: String
includeRootOperations: Boolean
}