membership.graphql 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. enum MembershipEntryMethod {
  2. PAID
  3. SCREENING
  4. GENESIS
  5. }
  6. "Stored information about a registered user"
  7. type Membership @entity {
  8. "MemberId: runtime identifier for a user"
  9. id: ID!
  10. "The unique handle chosen by member"
  11. handle: String! @unique @fulltext(query: "membersByHandle")
  12. "A Url to member's Avatar image"
  13. avatarUri: String
  14. "Short text chosen by member to share information about themselves"
  15. about: String
  16. "Member's controller account id"
  17. controllerAccount: String!
  18. "Member's root account id"
  19. rootAccount: String!
  20. "Blocknumber when member was registered"
  21. createdInBlock: Int!
  22. "How the member was registered"
  23. entry: MembershipEntryMethod!
  24. "The type of subscription the member has purchased if any."
  25. subscription: Int
  26. "List of channels the member owns"
  27. channels: [Channel!]! @derivedFrom(field: "ownerMember")
  28. "List of channels the member has collaborator access to"
  29. collaboratorInChannels: [Channel!] @derivedFrom(field: "collaborators")
  30. }