From c98d525caaa50ca2bbbe51adbe1702e15cb54716 Mon Sep 17 00:00:00 2001 From: Pawel Kowalski Date: Thu, 9 Aug 2018 13:59:04 +0200 Subject: [PATCH] Adds example filtered query --- .../graphql/gql/sandbox/filteredBookQuery.gql | 31 +++++++++++++++++++ client/src/pages/index.vue | 6 ++++ 2 files changed, 37 insertions(+) create mode 100644 client/src/graphql/gql/sandbox/filteredBookQuery.gql diff --git a/client/src/graphql/gql/sandbox/filteredBookQuery.gql b/client/src/graphql/gql/sandbox/filteredBookQuery.gql new file mode 100644 index 00000000..34a1334b --- /dev/null +++ b/client/src/graphql/gql/sandbox/filteredBookQuery.gql @@ -0,0 +1,31 @@ +query BookQuery { + books { + edges { + node { + id + title + topics(first:1) { + edges { + node { + id + title + slug + teaser + modules(slug_Icontains:"ate") { + edges { + node { + id + title + slug + teaser + heroImage + } + } + } + } + } + } + } + } + } +} diff --git a/client/src/pages/index.vue b/client/src/pages/index.vue index 6e88e0fc..0010581b 100644 --- a/client/src/pages/index.vue +++ b/client/src/pages/index.vue @@ -18,6 +18,7 @@ modules: [] } }, + apollo: { modules: { query: ALL_MODULES, @@ -30,8 +31,13 @@ } } }, + head: { title: 'Modules with Apollo' + }, + + created() { + // debugger } }