queryDraftPosts( )
Retrieves a list of up to 100 draft posts, given the provided paging, filtering, and sorting.
Query Draft Posts runs with these defaults, which you can override:
editedDate
is sorted inDESC
order.paging.limit
is50
.paging.offset
is0
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,hasSome() ,ascending() ,descending() |
title | eq() ,ne() ,startsWith() ,hasSome() ,exists() ,in() ,ascending() ,descending() |
excerpt | eq() ,ne() ,startsWith() ,hasSome() ,exists() ,in() ,ascending() ,descending() |
featured | eq() ,ne() ,ascending() ,descending() |
categoryIds | hasSome() ,hasAll() |
memberId | eq() ,ne() ,hasSome() |
hashtags | hasSome() ,hasAll() |
commentingEnabled | eq() ,ne() ,ascending() ,descending() |
minutesToRead | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,in() |
tagIds | hasSome() ,hasAll() |
pricingPlanIds | hasSome() ,hasAll() |
translationId | eq() ,ne() ,exists() ,in() |
language | eq() ,ne() ,hasSome() ,exists() ,in() |
status | eq() ,ne() ,hasSome() ,exists() ,in() ,ascending() ,descending() |
hasUnpublishedChanges | eq() ,ne() ,ascending() ,descending() |
editedDate | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,in() ,ascending() ,descending() |
scheduledPublishDate | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,in() ,ascending() ,descending() |
Admin Method
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Blog
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
optionsQueryDraftPostsOptions
Options for querying draft posts.
Returns
Return Type:DraftPostsQueryBuilder
Was this helpful?
Yes
No