From 18dece1c045792a5c4460efe12d73c60bc7b8932 Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Sat, 14 Aug 2021 23:19:26 +0600 Subject: [PATCH] [catalog/query][s]: changed get org query to return sufficient data about an org + follow frictionless spec. --- examples/catalog/graphql/queries.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/examples/catalog/graphql/queries.ts b/examples/catalog/graphql/queries.ts index e3af0b9f..0523dd30 100644 --- a/examples/catalog/graphql/queries.ts +++ b/examples/catalog/graphql/queries.ts @@ -1,14 +1,17 @@ import gql from 'graphql-tag'; export const GET_ORG_QUERY = gql` - query dataset($id: String) { - dataset(id: $id) @rest(type: "Response", path: "package_show?{args}") { + query org($id: String) { + org(id: $id) @rest(type: "Response", path: "organization_show?{args}") { result { - organization { - name - title - image_url - } + name + title + description + image: image_url + created + total: package_count + users + followers: num_followers } } }