Skip to content

batata-frita/cebola

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures

The nodes will have the types:

type User = {
  handler: string,
  id: number,
}

type Repo = {
  handler: string,
  id: number
}

type Org = {
  handler: string,
  id: number
}

Relationships

type follows = [User, User]

type belongsTo = [User, Org]

type has = [Org, Repo]

Constraints

http://blog.armbruster-it.de/2013/12/indexing-in-neo4j-an-overview/

CREATE CONSTRAINT ON (p:User) ASSERT p.handler IS UNIQUE

All

MATCH (n) RETURN n LIMIT 1000

Cyclic

MATCH (a:User), (b:User) WHERE (a)-[:FOLLOWS]->(b) AND (b)-[:FOLLOWS]->(a) RETURN a, b

Delete

MATCH (n) DETACH
DELETE n

About

Hackathon project: winner for the Uppsala Hackathon 2016

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published