Skip to content

Instantly share code, notes, and snippets.

@Gozala
Last active March 20, 2020 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gozala/5d69eaf51f9dcc3fbeb958f7ea3dd188 to your computer and use it in GitHub Desktop.
Save Gozala/5d69eaf51f9dcc3fbeb958f7ea3dd188 to your computer and use it in GitHub Desktop.
type Tag {
id:ID
name: String! @fake(type:word)
}
type InlineLink {
id:ID
to:Resource!
name:String @examples(values: ["automerge", "pushpin", "local-first", "farm"])
description:String @fake(type:words)
}
type ReferenceLink {
id:ID
to:Resource!
name:String! @examples(values: ["automerge", "pushpin", "local-first", "farm"])
description:String @fake(type:words)
}
type Resource {
url:String! @fake(type:url)
links:[Resource!]!
tags:[Tag!]!
}
union Reference = ReferenceLink | InlineLink | Tag
type Query {
connections(url:String):[Reference!]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment