File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -772,16 +772,18 @@ class DatastoreRequest {
772772 ) ;
773773 } else {
774774 const aggregationQueryOptions : AggregationQueryOptions = {
775- nestedQuery : queryProto ,
775+ query_type : {
776+ nested_query : queryProto ,
777+ } ,
776778 aggregations : query . aggregations
777779 } ;
778780 const reqOpts : RunAggregationQueryRequest = Object . assign (
779781 sharedQueryOpts ,
780- // {query_type:
782+ { query_type :
781783 {
782- aggregationQuery : aggregationQueryOptions
784+ aggregation_query : aggregationQueryOptions
783785 }
784- // }
786+ }
785787 ) ;
786788 console . log ( 'Aggregate' ) ;
787789 console . log ( reqOpts ) ;
@@ -1121,12 +1123,14 @@ export interface RequestOptions extends SharedQueryOptions{
11211123 entityFilter ?: google . datastore . admin . v1 . IEntityFilter ;
11221124}
11231125export interface RunAggregationQueryRequest extends SharedQueryOptions {
1124- // query_type: {
1125- aggregationQuery : AggregationQueryOptions
1126- // }
1126+ query_type : {
1127+ aggregation_query : AggregationQueryOptions
1128+ }
11271129}
11281130export interface AggregationQueryOptions {
1129- nestedQuery : QueryProto ,
1131+ query_type : {
1132+ nested_query : QueryProto ,
1133+ }
11301134 aggregations : Array < any >
11311135}
11321136export type RunQueryStreamOptions = RunQueryOptions ;
You can’t perform that action at this time.
0 commit comments