Skip to content

Commit 60de980

Browse files
committed
Merge pull request #576 from jgeewax/query-reference-doc-fix
Make query reference links more explanatory.
2 parents 412598c + 6830fc2 commit 60de980

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lib/datastore/query.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var util = require('../common/util.js');
3535
* {@linkcode module:datastore/dataset#createQuery} and run via
3636
* {@linkcode module:datastore/dataset#runQuery}.**
3737
*
38-
* *[Reference](http://goo.gl/Cag0r6).*
38+
* *[More information on queries](http://goo.gl/Cag0r6).*
3939
*
4040
* @constructor
4141
* @alias module:datastore/query
@@ -82,7 +82,7 @@ function Query(namespace, kinds) {
8282
*
8383
* *To filter by ancestors, see {@linkcode module:datastore/query#hasAncestor}.*
8484
*
85-
* *[Reference](http://goo.gl/ENCx7e).*
85+
* *[More information on filtering by properties](http://goo.gl/ENCx7e).*
8686
*
8787
* @param {string} filter - Property + Operator (=, <, >, <=, >=).
8888
* @param {*} value - Value to compare property to.
@@ -116,7 +116,7 @@ Query.prototype.filter = function(filter, value) {
116116
/**
117117
* Filter a query by ancestors.
118118
*
119-
* *[Reference](http://goo.gl/1qfpkZ).*
119+
* *[More information on filtering by ancestors](http://goo.gl/1qfpkZ).*
120120
*
121121
* @param {Key} key - Key object to filter by.
122122
* @return {module:datastore/query}
@@ -134,7 +134,7 @@ Query.prototype.hasAncestor = function(key) {
134134
* Sort the results by a property name in ascending or descending order. By
135135
* default, an ascending sort order will be used.
136136
*
137-
* *[Reference](http://goo.gl/mfegFR).*
137+
* *[More information on sort orders](http://goo.gl/mfegFR).*
138138
*
139139
* @param {string} property - Optional operator (+, -) and property to order by.
140140
* @return {module:datastore/query}
@@ -176,7 +176,9 @@ Query.prototype.groupBy = function(fieldNames) {
176176
/**
177177
* Retrieve only select properties from the matched entities.
178178
*
179-
* *[Reference](http://goo.gl/EfsrJl).*
179+
* Queries that select a subset of properties are called Projection Queries.
180+
*
181+
* *[More information on projection queries](http://goo.gl/EfsrJl).*
180182
*
181183
* @param {array} fieldNames - Properties to return from the matched entities.
182184
* @return {module:datastore/query}
@@ -194,7 +196,7 @@ Query.prototype.select = function(fieldNames) {
194196
/**
195197
* Set a starting cursor to a query.
196198
*
197-
* *[Reference](http://goo.gl/WuTGRI).*
199+
* *[More information on query cursors](http://goo.gl/WuTGRI).*
198200
*
199201
* @param {string} cursorToken - The starting cursor token.
200202
* @return {module:datastore/query}
@@ -214,7 +216,7 @@ Query.prototype.start = function(start) {
214216
/**
215217
* Set an ending cursor to a query.
216218
*
217-
* *[Reference](http://goo.gl/WuTGRI).*
219+
* *[More information on query cursors](http://goo.gl/WuTGRI).*
218220
*
219221
* @param {string} cursorToken - The ending cursor token.
220222
* @return {module:datastore/query}
@@ -234,7 +236,7 @@ Query.prototype.end = function(end) {
234236
/**
235237
* Set a limit on a query.
236238
*
237-
* *[Reference](http://goo.gl/f0VZ0n).*
239+
* *[More information on query limits](http://goo.gl/f0VZ0n).*
238240
*
239241
* @param {number} n - The number of results to limit the query to.
240242
* @return {module:datastore/query}
@@ -252,7 +254,7 @@ Query.prototype.limit = function(n) {
252254
/**
253255
* Set an offset on a query.
254256
*
255-
* *[Reference](http://goo.gl/f0VZ0n).*
257+
* *[More information on query offsets](http://goo.gl/f0VZ0n).*
256258
*
257259
* @param {number} n - The offset to start from after the start cursor.
258260
* @return {module:datastore/query}

0 commit comments

Comments
 (0)