datahub/mock/schema.graphql

59 lines
856 B
GraphQL

type Query {
search(query: SearchQuery!): Response!
}
type Query {
dataset(id: String!): DatasetResponse!
}
input SearchQuery {
q: String!
}
type Response {
success: Boolean!
result: Result!
}
type DatasetResponse {
success: Boolean!
result: Package!
}
type Result {
count: Int!
sort: String!
facets: String!
search_facets: String!
results: [Package!]!
}
type Package {
name: String!
title: String!
notes: String!
resources: [Resource!]!
organization: Organization!
metadata_created: String!
metadata_modified: String!
}
type Resource {
name: String!
id: String!
title: String!
format: String!
created: String!
last_modified: String!
datastore_active: Boolean!
url: String!
}
type Organization {
name: String!
title: String!
description: String!
created: String!
image_url: String!
}