-
Notifications
You must be signed in to change notification settings - Fork 0
DocumentPostCollection
Johannes Pour edited this page Oct 8, 2021
·
2 revisions
-
posts: Array of DocumentPost
-
.findByTitle(title: string)-> Array of DocumentPost
GetDocumentPosts that match thetitle
-
.findById(id: string)-> Array of DocumentPost
GetDocumentPosts that match theid
-
.findByDate(date: Date)-> Array of DocumentPost
GetDocumentPosts that match thedate
-
.findByUrl(url: string)-> Array of DocumentPost
GetDocumentPosts that match theurl
-
.findByPreview(previewUrl: string)-> Array of DocumentPost
GetDocumentPosts that match thepreviewUrl
-
.toJSON()-> object
Returns theDocumentPostCollectionobject as aJSONobject.
-
.fromJSON(data: object)-> DocumentPostCollection instance
Creates a newDocumentPostCollectionobject from theJSONdata
For more technical info, you can read the docs inside the code