diff --git a/src/schema.graphql b/src/schema.graphql index e5ce16e65..0e4e2652b 100644 --- a/src/schema.graphql +++ b/src/schema.graphql @@ -48,6 +48,8 @@ type User { organizationsCreated: [Organization] @relation(name: "CREATED_ORGA", direction: "OUT") organizationsOwned: [Organization] @relation(name: "OWNING_ORGA", direction: "OUT") + blacklisted: [User]! @relation(name: "BLACKLISTED", direction: "OUT") + badges: [Badge]! @relation(name: "REWARDED", direction: "IN") badgesCount: Int! @cypher(statement: "MATCH (this)<-[:REWARDED]-(r:Badge) RETURN COUNT(r)") } diff --git a/src/seed/seed-mutations.js b/src/seed/seed-mutations.js index 03a7847ea..66ccfad1f 100644 --- a/src/seed/seed-mutations.js +++ b/src/seed/seed-mutations.js @@ -27,6 +27,8 @@ export default ` role } + u1_blacklist_u4: AddUserBlacklisted(from: { id: "u1" }, to: { id: "u4" }) { from { id } } + # Badges b1: CreateBadge(id: "b1", key: "indiegogo_en_racoon", type: Crowdfunding, status: Permanent, icon: "indiegogo_en_racoon") { id } b2: CreateBadge(id: "b2", key: "indiegogo_en_rabbit", type: Crowdfunding, status: Permanent, icon: "indiegogo_en_rabbit") { id }