Import of Unknown directives dbquery, sdl

62 Views Asked by At

I'm using Stepzen, it generated graphql files, however, all of them with errors:

stepzen/index.graphql

schema @sdl(files: ["postgresql/index.graphql"]) {
  query: Query
}

stepzen/postgresql/index.graphql

type Query {
  getCommentList: [Comment]
    @dbquery(
      type: "postgresql"
      schema: "public"
      table: "comment"
      configuration: "postgresql_config"
    )
 }

I can't understand how to import them correctly to fix the errors. Sorry, if it's a stupid question...

Thank you in advance!

0

There are 0 best solutions below