Creates a query to retrieve a list of public pricing plans.
The queryPublicPlans()
method builds a query to retrieve a list of up to 1,000 public plans and returns a PublicPlansQueryBuilder
object.
The returned object contains the query definition which is typically used to run the query using the find()
method.
You can refine the query by chaining PublicPlansQueryBuilder
methods onto the query. PublicPlansQueryBuilder
methods enable you to sort, filter, and control the results that queryPublicPlans()
returns.
queryPublicPlans()
runs with the following PublicPlansQueryBuilder
defaults that you can override:
The methods that are chained to queryPublicPlans()
are applied in the order they are called. For example, if you sort on the _createdDate
property in ascending order and then on the _id
property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by _id
in ascending order, per created date value.
The following PublicPlansQueryBuilder
methods are supported for the queryPublicPlans()
method. For a full description of the Plans object, see the object returned for the items
property in PublicPlansQueryResult
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
primary | eq() ,ne() ,exists() ,in() ,hasSome() ,ascending() ,descending() |
_createdDate | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
_updatedDate | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
slug | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |