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

Explore Federation v2 linting rules #1824

Open
Urigo opened this issue Aug 17, 2023 · 2 comments
Open

Explore Federation v2 linting rules #1824

Urigo opened this issue Aug 17, 2023 · 2 comments
Labels
help wanted Extra attention is needed new rule

Comments

@Urigo
Copy link
Collaborator

Urigo commented Aug 17, 2023

Is ti possible to create a lint rule for enforcing Fed v2?

This could help with subgraphs that needs to migrate and maybe provide some observability for the status of that kind of migration

@dimaMachina
Copy link
Owner

Definitely possible

@klippx
Copy link

klippx commented Sep 21, 2023

This lib is really hard to use in a federation project. We have all schema files spread out in packages, we want to lint them individually. And they are using a lot of federation directives, it feels like this should be a core feature of this lint package to support federation since almost all big projects use federation. And with Open Federation on the horizon... well ;)

I really dont want to specify/give hints on these things, the lib should pick it up via

schema
  @link(
    url: "https://specs.apollo.dev/federation/v2.4"
    import: [
      "@key"
      "@external"
      "@provides"
      "@requires"
      "@extends"
      "@shareable"
      "@tag"
      "@inaccessible"
      "@override"
    ]
  )

which federation imports are in place for the particular schema it is linting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new rule
Projects
None yet
Development

No branches or pull requests

3 participants