queryComments( )


開発者プレビュー

このAPIは変更される可能性があります。プレビュー期間中、開発者からのフィードバックに基づいてバグ修正や新機能がリリースされる予定です。

Creates a query to retrieve a list of comments.

について queryComments() function builds a query to retrieve a list of comments and returns a CommentsQueryBuilder オブジェクトがある。

The returned object contains the query definition, which is typically used to run the query using the find() 関数である。

You can refine the query by chaining CommentsQueryBuilder functions onto the query. CommentsQueryBuilder functions enable you to sort, filter, and control the results that queryComments() returns.

queryComments() runs with the following CommentsQueryBuilder default that you can override:

  • ascending("_id")

The functions that are chained to queryComments() are applied in the order they are called. For example, if you apply ascending("voteSummary.netVoteCount") and then ascending("replyCount"), the results are sorted first by the "voteSummary.netVoteCount", and then, if there are multiple results with the same "voteSummary.netVoteCount", the items are sorted by "replyCount".

The following CommentsQueryBuilder functions are supported for the queryComments() function. For a full description of the comment object, see the object returned for the 項目 property in CommentsQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),in()
contextIdeq(),ne(),in()
resourceIdeq(),ne(),in()
author.userIdeq(),ne(),in()
author.memberIdeq(),ne(),in()
author.visitorIdeq(),ne(),in()
parentComment.ideq(),ne(),in()
replyCounteq(),ne(),lt(),ル(),gt(),ge(),昇順(),降順()
voteSummary.netVoteCounteq(),ne(),lt(),ル(),gt(),ge(),昇順(),降順()
statuseq(),ne(),in()
ratingeq(),ne(),lt(),ル(),gt(),ge(),昇順(),降順()
reactionSummary.totaleq(),ne(),lt(),ル(),gt(),ge(),昇順(),降順()
markedeq(),ne(),昇順(),降順()
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Comments
Read Comments
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
appIdstringRequired

App ID to query comments for.

リターン
役に立ちましたか?
はい
いいえ