[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';
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
}
}
}