-
Notifications
You must be signed in to change notification settings - Fork 106
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
[new rule] validate subgraph according federation 2 #2049
base: master
Are you sure you want to change the base?
Conversation
|
"peerDependenciesMeta": { | ||
"@apollo/federation-internals": { | ||
"optional": true | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think people should explicitly install this dependency if they want to validate federation schema, there is no need to add to dependencies
} from '@apollo/federation-internals'; | ||
import { GraphQLESLintRule } from '../types.js'; | ||
|
||
const RULE_ID = 'federation-subgraph'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any suggestions to rule name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apollo-federation-subgraph
would be more precise?
"@apollo/federation-internals": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"@graphql-tools/code-file-loader": "^8.0.0", | ||
"@graphql-tools/graphql-tag-pluck": "^8.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should add @graphql-tools/graphql-tag-pluck
also to peerDependencies
in v4, since it's a big dependency that installs a lot of things (not everybody lint code files)
What's needed to move this forward? |
Part of #1824
I am new in the Federation spec and feel like validation should be split into 2 rules