Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommunitiesResolver

Implements

  • ResolverInterface<Community>

Index

Constructors

constructor

Methods

communityCallEvent

  • communityCallEvent(pubSub: PubSubEngine, user: User, type: "request" | "offer" | "answer" | "ice", community: string, to?: string, sdp?: string): Promise<boolean>

communityCalls

createCommunity

  • createCommunity(id: string, title: string, description: string, user: User): Promise<boolean>
  • Allows a user to create a community to moderate.

    internal

    Parameters

    • id: string

      ID of the new community to make.

    • title: string

      Title of the new community.

    • description: string

      Description of the new community.

    • user: User

      Currently logged in user.

    Returns Promise<boolean>

    True on success.

getCommunities

  • getCommunities(host: string): Promise<Community[]>

getCommunity

posts

  • posts(community: Community, user: User): Promise<Post[]>

Generated using TypeDoc