Home > @vsf-enterprise/commercetools-api > getReviewDefaultQuery

# getReviewDefaultQuery variable

Default GraphQL query for the getReview API endpoint

Signature:

getReviewDefaultQuery = "\n  query reviews(\n    $where: String!,\n    $limit: Int,\n    $offset: Int,\n    $sort: [String!]\n  ) {\n    reviews(\n      where: $where,\n      limit: $limit,\n      offset: $offset,\n      sort: $sort\n    ) {\n      offset,\n      count,\n      total,\n      results {\n        id,\n        text,\n        authorName,\n        rating,\n        createdAt\n      }\n    }\n  }\n"