js-graphql-intellij-plugin icon indicating copy to clipboard operation
js-graphql-intellij-plugin copied to clipboard

Feature request: Support for StepZen directives

Open cherylli opened this issue 1 year ago • 1 comments

They are coming up as invalid. 

For example, in a .graphql file (I already have the graphql plugin installed)

@materializer image

https://stepzen.com/docs/custom-graphql-directives/directives#type-system-directives

cherylli avatar Feb 13 '23 11:02 cherylli

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
}

mlabisi avatar Feb 14 '23 01:02 mlabisi