mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 14:11:44 +00:00
This PR adjusts all configs/generators/linters that we use to support multiple `.graphql` files to be stitched together for the final schema. This should help a bit with the MASSIVE `schema.graphql` file that has grown to around 10k loc by now, by encapsulating different fields of concern into separate files. Using the `extend` keyword, there is nothing that cannot be expressed with separate files that could have been with a single file, so there are no drawbacks to this method, that I'm aware of. In a follow-up PR, I will restructure the backend code for this a bit and make it so the enterprise schema is not used in OSS (which gives better introspection, because there is less noise from fields that aren't accessible because OSS) and doesn't require us to implement a `defaultXXResolver`.
10 lines
237 B
JavaScript
10 lines
237 B
JavaScript
module.exports = {
|
|
schemaPaths: ['cmd/frontend/graphqlbackend/*.graphql'],
|
|
rules: [
|
|
'deprecations-have-a-reason',
|
|
'fields-have-descriptions',
|
|
'input-object-values-have-descriptions',
|
|
'types-have-descriptions',
|
|
],
|
|
}
|