Skip to content

Instantly share code, notes, and snippets.

@johnymontana
Last active December 23, 2018 00:07
Show Gist options
  • Save johnymontana/a9b782548a0f80a9e4fed02af2027a44 to your computer and use it in GitHub Desktop.
Save johnymontana/a9b782548a0f80a9e4fed02af2027a44 to your computer and use it in GitHub Desktop.
Github GraphQL API in Neo4j
CREATE CONSTRAINT ON (r:Repository) ASSERT r.url IS UNIQUE;
CREATE CONSTRAINT ON (u:User) ASSERT u.url IS UNIQUE;
CREATE CONSTRAINT ON (h:Webhook) ASSERT h.url IS UNIQUE;
CREATE CONSTRAINT ON (p:PullRequest) ASSERT p.url IS UNIQUE;
CREATE CONSTRAINT ON (i:Issue) ASSERT i.url IS UNIQUE;
CREATE CONSTRAINT ON (c:IssueComment) ASSERT c.url IS UNIQUE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment