Skip to content

0.46.1 results in: The directive "@key" can only be used once at this location. #3449

Closed
@nicerobot

Description

@nicerobot

Describe the bug

I just tried upgrading from "@graphql-mesh/cli": "^0.45.0" to "@graphql-mesh/cli": "^0.46.1" and now mesh:dev fails with lots of

The directive "@key" can only be used once at this location.
sources:
  - name: api
    handler:
      postgraphile:
        connectionString: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:${PGPORT}/${PGDATABASE}?sslmode=${PGSSLMODE}
        schemaName:
          - my_schema
        options:
          dynamicJson: true
          enhanceGraphiql: true
          allowExplain: true
          defaultPaginationCap: 10
        appendPlugins:
          - "postgraphile-federation-plugin"
          - "postgraphile-plugin-connection-filter"
          - "@graphile/pg-aggregates"
    transforms:
      - namingConvention:
          fieldNames: snakeCase
skipSSLValidation: true

Environment:

  • OS: macos bigsur
  • "@graphql-mesh/cli": "^0.45.0",
  • "@graphql-mesh/postgraphile": "^0.18.0",
  • "@graphql-mesh/transform-filter-schema": "^0.14.8",
  • "@graphql-mesh/transform-naming-convention": "^0.9.0",
  • "@graphql-mesh/transform-prefix": "^0.9.8",
  • "@graphql-mesh/tuql": "^0.4.81",
  • NodeJS: v12.22.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions