Last active
March 20, 2020 22:00
-
-
Save Gozala/5d69eaf51f9dcc3fbeb958f7ea3dd188 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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