Skip to content

Instantly share code, notes, and snippets.

@thomasleese
Created June 19, 2017 08:22
Show Gist options
  • Select an option

  • Save thomasleese/af382d410ccde57ff5cbb0eb1c2436b8 to your computer and use it in GitHub Desktop.

Select an option

Save thomasleese/af382d410ccde57ff5cbb0eb1c2436b8 to your computer and use it in GitHub Desktop.
type Path {
path: String!
resource: Resource!
}
union Resource = Document | Redirect | Gone
enum SchemaName {
...
}
enum DocumentType {
...
}
enum RenderingApp {
...
}
enum PublishingApp {
...
}
scalar DateTime
scalar JSON
type DocumentSupertypes {
email: String!
government: String!
navigation: String!
user_journey: String!
}
type Document {
content_id: ID!
locale: String!
editions: [Edition!]!
schema_name: SchemaName!
document_type: DocumentType!
document_supertypes: DocumentSupertypes!
first_published_at: DateTime!
}
type AccessLimited {
users: [Int!]!
auth_bypass_ids: [Int!]!
}
type EditionRequestIds {
publishing: String!
}
type Edition {
id: ID!
title: String!
description: String
need_ids: [Int!]!
public_updated_at: DateTime!
details: JSON!
publishing_app: PublishingApp!
rendering_app: RenderingApp!
links: JSON
expanded_links: JSON
access_limited: AccessLimited
phase: String!
analytics_identifier: String!
payload_version: Int!
request_ids: EditionRequestIds!
}
type Redirect {
target: String!
}
type WithdrawnNotice {
explanation: String!
date: DateTime!
}
type Gone {
withdrawn_notice: WithdrawnNotice!
}
type Query {
path(path: String!): Path
}
query ContentByPath($path: String!) {
path(path: $path) {
resource
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment