mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
added blacklist relation
This commit is contained in:
parent
a5ca646b71
commit
6c87ba2ada
@ -48,6 +48,8 @@ type User {
|
|||||||
organizationsCreated: [Organization] @relation(name: "CREATED_ORGA", direction: "OUT")
|
organizationsCreated: [Organization] @relation(name: "CREATED_ORGA", direction: "OUT")
|
||||||
organizationsOwned: [Organization] @relation(name: "OWNING_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")
|
badges: [Badge]! @relation(name: "REWARDED", direction: "IN")
|
||||||
badgesCount: Int! @cypher(statement: "MATCH (this)<-[:REWARDED]-(r:Badge) RETURN COUNT(r)")
|
badgesCount: Int! @cypher(statement: "MATCH (this)<-[:REWARDED]-(r:Badge) RETURN COUNT(r)")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,8 @@ export default `
|
|||||||
role
|
role
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u1_blacklist_u4: AddUserBlacklisted(from: { id: "u1" }, to: { id: "u4" }) { from { id } }
|
||||||
|
|
||||||
# Badges
|
# Badges
|
||||||
b1: CreateBadge(id: "b1", key: "indiegogo_en_racoon", type: Crowdfunding, status: Permanent, icon: "indiegogo_en_racoon") { id }
|
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 }
|
b2: CreateBadge(id: "b2", key: "indiegogo_en_rabbit", type: Crowdfunding, status: Permanent, icon: "indiegogo_en_rabbit") { id }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user