Skip to content

Commit

Permalink
Change docs to use new filter
Browse files Browse the repository at this point in the history
The new property filter should be used and this should be reflected in the doc comments.
  • Loading branch information
danieljbruce committed Oct 23, 2023
1 parent 483a71d commit c290481
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Expand Up @@ -215,7 +215,7 @@ const urlSafeKey = new entity.URLSafeKey();
* // Multiple records can be found that match criteria with
* // {@link Query#filter}.
* //-
* query.filter('location', 'CA');
* query.filter(new PropertyFilter('location', '=', 'CA'));
*
* //-
* // Records can also be ordered with {@link Query#order}.
Expand Down Expand Up @@ -1335,8 +1335,8 @@ class Datastore extends DatastoreRequest {
* //-
* const query = datastore.createQuery('Company');
* const companyQuery = query
* .filter('geoPoint.latitude', datastore.double(40.123))
* .filter('geoPoint.longitude', datastore.double(-74.0447));
* .filter(new PropertyFilter('geoPoint.latitude', '=', datastore.double(40.123)))
* .filter(new PropertyFilter('geoPoint.longitude', '=', datastore.double(-74.0447)));
* ```
*/
static geoPoint(coordinates: entity.Coordinates) {
Expand Down

0 comments on commit c290481

Please sign in to comment.