From 6a51052b536c26cb40d6a51dac2f3fa53b247855 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 25 Jan 2022 15:31:15 +0100 Subject: [PATCH] Update graphql schema, update schema config --- .graphqlconfig | 12 ++++- .graphqlrc | 1 - .../betaLogin.gql | 0 client/src/pages/beta-login.vue | 2 +- server/graphql-schema.sh | 3 ++ server/schema-public.graphql | 51 +++++++++++++++++++ server/schema.graphql | 3 ++ 7 files changed, 69 insertions(+), 3 deletions(-) delete mode 100644 .graphqlrc rename client/src/graphql/gql/{mutations => public-client}/betaLogin.gql (100%) create mode 100644 server/schema-public.graphql diff --git a/.graphqlconfig b/.graphqlconfig index 1c92ceb8..be0d4e6a 100644 --- a/.graphqlconfig +++ b/.graphqlconfig @@ -1,3 +1,13 @@ { - "schemaPath": "server/schema.graphql" + "projects": { + "private": { + "schemaPath": "./server/schema.graphql", + "includes": ["./client/src/graphql/**"], + "excludes": ["./client/src/graphql/gql/public-client/**"] + }, + "public": { + "schemaPath": "./server/schema-public.graphql", + "includes": ["./client/src/graphql/gql/public-client/*.gql"] + } + } } diff --git a/.graphqlrc b/.graphqlrc deleted file mode 100644 index b856c5cf..00000000 --- a/.graphqlrc +++ /dev/null @@ -1 +0,0 @@ -schema: 'server/schema.graphql' diff --git a/client/src/graphql/gql/mutations/betaLogin.gql b/client/src/graphql/gql/public-client/betaLogin.gql similarity index 100% rename from client/src/graphql/gql/mutations/betaLogin.gql rename to client/src/graphql/gql/public-client/betaLogin.gql diff --git a/client/src/pages/beta-login.vue b/client/src/pages/beta-login.vue index 2e077dee..a5d059de 100644 --- a/client/src/pages/beta-login.vue +++ b/client/src/pages/beta-login.vue @@ -50,7 +50,7 @@