From 3810932cac0e6ea3728fbc68561011fa44e0aec6 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 13 Sep 2022 11:24:51 +0200 Subject: [PATCH] Replace old queries without subselection --- client/src/graphql/gql/fragments/instrumentParts.gql | 7 ++++++- client/src/graphql/gql/queries/instrumentTypesQuery.gql | 7 ++++++- client/src/graphql/gql/queries/instrumentsQuery.gql | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/client/src/graphql/gql/fragments/instrumentParts.gql b/client/src/graphql/gql/fragments/instrumentParts.gql index 26d3f5c3..9d90b65a 100644 --- a/client/src/graphql/gql/fragments/instrumentParts.gql +++ b/client/src/graphql/gql/fragments/instrumentParts.gql @@ -13,7 +13,12 @@ fragment InstrumentParts on InstrumentNode { type { id name - category + category { + id + name + foreground + background + } type } contents diff --git a/client/src/graphql/gql/queries/instrumentTypesQuery.gql b/client/src/graphql/gql/queries/instrumentTypesQuery.gql index 78b8b0db..3637fed8 100644 --- a/client/src/graphql/gql/queries/instrumentTypesQuery.gql +++ b/client/src/graphql/gql/queries/instrumentTypesQuery.gql @@ -2,6 +2,11 @@ query InstrumentTypesQuery { instrumentTypes { name type - category + category { + id + name + foreground + background + } } } diff --git a/client/src/graphql/gql/queries/instrumentsQuery.gql b/client/src/graphql/gql/queries/instrumentsQuery.gql index 290846b4..6d042b07 100644 --- a/client/src/graphql/gql/queries/instrumentsQuery.gql +++ b/client/src/graphql/gql/queries/instrumentsQuery.gql @@ -7,7 +7,12 @@ query InstrumentsQuery { type { id type - category + category { + id + name + foreground + background + } name } }