[catalog/query][s]: changed get org query to return sufficient data about an org + follow frictionless spec.

This commit is contained in:
anuveyatsu
2021-08-14 23:19:26 +06:00
parent 89e7b942aa
commit 18dece1c04

View File

@@ -1,14 +1,17 @@
import gql from 'graphql-tag'; import gql from 'graphql-tag';
export const GET_ORG_QUERY = gql` export const GET_ORG_QUERY = gql`
query dataset($id: String) { query org($id: String) {
dataset(id: $id) @rest(type: "Response", path: "package_show?{args}") { org(id: $id) @rest(type: "Response", path: "organization_show?{args}") {
result { result {
organization { name
name title
title description
image_url image: image_url
} created
total: package_count
users
followers: num_followers
} }
} }
} }