Open diazoxide opened 1 year ago
@diazoxide Hi! Sorry for the late response. Unfortunately, I can't reproduce the issue. My project looks like that, no errors so far.
directives.graphql
directive @Resource(Name: String!, Route: String, Primary: Boolean, DB: DbConfig) on OBJECT
directive @Field(Label: String, Description: String, DB: DbFieldConfig) on FIELD_DEFINITION
types.graphql
input DbConfig {
Table: String
}
input DbFieldConfig {
Column: String
PrimaryKey: Boolean
Unique: Boolean
}
type Car {
name: String
}
type User @Resource(Name: "user", Primary: true, Route: "user", DB: {Table: "user"}) {
id: ID! @Field(Label: "ID", Description: "ID of the todo", DB: {Column: "id", PrimaryKey: true})
name: String! @Field(Label: "Text", Description: "Text of the todo", DB: {Column: "name", Unique: true})
cars: [Car!]! @Field(Label: "Cars", Description: "Cars of the todo", DB: {})
}
graphql.config.yml
schema:
- "./directives.graphql"
- "./types.graphql"
Custom defined directives from another file not
To Reproduce
directives.graphql
to schemas in (graphql.config.yaml or .graphqlrc e.t.c.)types.graphql
types.graphql
to schemas tooVersion and Environment Details Operation system: MacOS IDE name and version: Goland or Intellij IDEA Plugin version: 4.0.2