[dataset page][m]: setup dataset page to work with Apollo client connected to CKAN API.

This commit is contained in:
anuveyatsu
2020-06-23 14:07:49 +06:00
parent 1240eb8170
commit 2589ecaeeb
6 changed files with 64 additions and 18 deletions

View File

@@ -5,8 +5,8 @@ import { useQuery } from '@apollo/react-hooks';
import gql from 'graphql-tag';
export const GET_ORG_QUERY = gql`
query dataset($id: String!) {
dataset(id: $id) {
query dataset($id: String) {
dataset(id: $id) @rest(type: "Response", path: "package_show?{args}") {
result {
organization {
name