From 378bcbc39e8d577ccb9854987a89e8dd7a832af3 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 2 Jul 2024 15:35:58 +0200 Subject: [PATCH] Update the schema --- frontend/.eslintrc.cjs | 3 +++ frontend/schema.graphql | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index 45882724c..c220a7f3c 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -107,6 +107,9 @@ module.exports = { }, ], + // async-graphql generates a few unused directives, let's not warn about them + "@graphql-eslint/no-unreachable-types": "off", + // We need to disable this rule because of the 'username' field in the 'User' node "@graphql-eslint/no-typename-prefix": "off", diff --git a/frontend/schema.graphql b/frontend/schema.graphql index 3688b671b..dbbc4b59e 100644 --- a/frontend/schema.graphql +++ b/frontend/schema.graphql @@ -1857,6 +1857,12 @@ Represents the current viewer's session """ union ViewerSession = BrowserSession | Oauth2Session | Anonymous +directive @deprecated( + reason: String = "No longer supported" +) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE +directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT +directive @skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT +directive @specifiedBy(url: String!) on SCALAR schema { query: Query mutation: Mutation