Skip to content

DocumentPostCollection

Johannes Pour edited this page Oct 8, 2021 · 2 revisions

Attributes

Methods

  • .findByTitle(title: string) -> Array of DocumentPost
    Get DocumentPosts that match the title

  • .findById(id: string) -> Array of DocumentPost
    Get DocumentPosts that match the id

  • .findByDate(date: Date) -> Array of DocumentPost
    Get DocumentPosts that match the date

  • .findByUrl(url: string) -> Array of DocumentPost
    Get DocumentPosts that match the url

  • .findByPreview(previewUrl: string) -> Array of DocumentPost
    Get DocumentPosts that match the previewUrl

  • .toJSON() -> object
    Returns the DocumentPostCollection object as a JSON object.

  • .fromJSON(data: object) -> DocumentPostCollection instance
    Creates a new DocumentPostCollection object from the JSON data

Clone this wiki locally