File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
datastore/api/src/functions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ function projection_query(DatastoreClient $datastore)
504504 */
505505function run_projection_query (DatastoreClient $ datastore , Query $ query )
506506{
507- // [START run_projection_query ]
507+ // [START run_query_projection ]
508508 $ priorities = array ();
509509 $ percentCompletes = array ();
510510 $ result = $ datastore ->runQuery ($ query );
@@ -513,7 +513,7 @@ function run_projection_query(DatastoreClient $datastore, Query $query)
513513 $ priorities [] = $ task ['priority ' ];
514514 $ percentCompletes [] = $ task ['percent_complete ' ];
515515 }
516- // [END run_projection_query ]
516+ // [END run_query_projection ]
517517 return array ($ priorities , $ percentCompletes );
518518}
519519
@@ -525,14 +525,14 @@ function run_projection_query(DatastoreClient $datastore, Query $query)
525525 */
526526function distinct_on (DatastoreClient $ datastore )
527527{
528- // [START distinct_on ]
528+ // [START distinct_on_query ]
529529 $ query = $ datastore ->query ()
530530 ->kind ('Task ' )
531531 ->order ('category ' )
532532 ->order ('priority ' )
533533 ->projection (['category ' , 'priority ' ])
534534 ->distinctOn ('category ' );
535- // [END distinct_on ]
535+ // [END distinct_on_query ]
536536 return $ query ;
537537}
538538
You can’t perform that action at this time.
0 commit comments