Skip to content

Commit c290481

Browse files
committed
Change docs to use new filter
The new property filter should be used and this should be reflected in the doc comments.
1 parent 483a71d commit c290481

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const urlSafeKey = new entity.URLSafeKey();
215215
* // Multiple records can be found that match criteria with
216216
* // {@link Query#filter}.
217217
* //-
218-
* query.filter('location', 'CA');
218+
* query.filter(new PropertyFilter('location', '=', 'CA'));
219219
*
220220
* //-
221221
* // Records can also be ordered with {@link Query#order}.
@@ -1335,8 +1335,8 @@ class Datastore extends DatastoreRequest {
13351335
* //-
13361336
* const query = datastore.createQuery('Company');
13371337
* const companyQuery = query
1338-
* .filter('geoPoint.latitude', datastore.double(40.123))
1339-
* .filter('geoPoint.longitude', datastore.double(-74.0447));
1338+
* .filter(new PropertyFilter('geoPoint.latitude', '=', datastore.double(40.123)))
1339+
* .filter(new PropertyFilter('geoPoint.longitude', '=', datastore.double(-74.0447)));
13401340
* ```
13411341
*/
13421342
static geoPoint(coordinates: entity.Coordinates) {

0 commit comments

Comments
 (0)