Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nicerobot opened this issue Jan 7, 2022 · 1 comment

Comments

@nicerobot
Copy link

nicerobot commented Jan 7, 2022

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

@ardatan
Copy link
Owner

ardatan commented May 1, 2024

We recently added a few improvements related to the federation support. Could you try again?
Closing this issue for now. If it persists, we can re-open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants