Skip to content

Commit

Permalink
convert Worker entity into an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
metmirr committed Sep 28, 2020
1 parent d8b9033 commit 9540c34
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions query-node/joystream-query-node/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,18 @@ type Schema @entity {
}

"Working group participant: working-group/src/types.rs"
type Worker @entity {
interface Worker @entity {
member: Member!

"Account used to authenticate in this role"
roleAccountId: Bytes!

"Worker curator relationship"
curator: Curator @derivedFrom(field: "worker")
}

type Curator @entity {
"Account used to authenticate"
worker: Worker!
type Curator implements Worker @entity {
member: Member!

"Account used to authenticate in this role"
roleAccountId: Bytes!

groups: [CuratorGroup] @derivedFrom(field: "curators")
}
Expand Down

0 comments on commit 9540c34

Please sign in to comment.