[catalog/query][s]: changed get org query to return sufficient data about an org + follow frictionless spec.
This commit is contained in:
@@ -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
|
||||||
image_url
|
description
|
||||||
}
|
image: image_url
|
||||||
|
created
|
||||||
|
total: package_count
|
||||||
|
users
|
||||||
|
followers: num_followers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user