Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PostsResolver

Implements

  • ResolverInterface<Post>

Index

Constructors

constructor

Methods

approvePosts

children

  • children(post: Post, user: User): Promise<Post[]>

community

  • community(post: Post): Promise<Community>

createPost

deletePost

deletePosts

getPost

getPosts

getSubscribedPosts

  • getSubscribedPosts(user: User): Promise<Post[]>

getUnapprovedPosts

  • getUnapprovedPosts(user: User): Promise<Post[]>

parentPost

  • parentPost(post: Post, user: User): Promise<undefined | Post>

reportPost

updatePost

  • Allows the author of a post or an admin of the community the post was made on to update the content of the post.

    internal

    Parameters

    • post: RemoteReferenceInput

      Reference to the post in the federated network.

    • body: string

      The new body of the post.

    • user: User

      Currently logged in user.

    • Optional title: string

      The new title of the post.

    Returns Promise<Post>

    The updated post.

Generated using TypeDoc