Skip to content

Commit d33e27d

Browse files
authored
Merge pull request #369 from wooldridge/issues/withopts-227
fix(#227): clarify when a summary object appears in query results
2 parents a28d95b + b21b96b commit d33e27d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/documents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function wipeOutputTransform(/*headers, data*/) {
172172
/**
173173
* Categories of information to read or write for documents.
174174
* The possible values of the enumeration are
175-
* content|collections|permissions|properties|quality|metadataValues|metadata where
175+
* content|collections|metadataValues|permissions|properties|quality|metadata|none where
176176
* metadata is an alias for all of the categories other than content.
177177
* @typedef {enum} documents.categories
178178
* @since 1.0

lib/query-builder.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5097,7 +5097,10 @@ function snippet() {
50975097
/**
50985098
* Sets the withOptions clause of a built query to configure the query;
50995099
* takes a configuration object with the following named parameters.
5100-
* This function may be called on the result of building a query.
5100+
* This function may be called on the result of building a query. When the
5101+
* 'debug', 'metrics', 'queryPlan', or 'similarDocs' parameter is set, a
5102+
* search summary object will be returned along with the result documents.
5103+
* When 'categories' is set to 'none', only a search summary is returned.
51015104
* @method
51025105
* @since 1.0
51035106
* @memberof queryBuilder#
@@ -5106,7 +5109,8 @@ function snippet() {
51065109
* @param {number} [concurrencyLevel] - the maximum number of threads to use to calculate facets
51075110
* @param {string|string[]} [forestNames] - the ids of forests providing documents
51085111
* for the result set
5109-
* @param {...string} [search] - options modifying the default behaviour of the query
5112+
* @param {...string} [search] - <a href="https://docs.marklogic.com/guide/search-dev/appendixa#id_77801">options</a>
5113+
* modifying the default behaviour of the query
51105114
* @param {string|transactions.Transaction} [txid] - a string
51115115
* transaction id or Transaction object identifying an open
51125116
* multi-statement transaction

0 commit comments

Comments
 (0)