@@ -32,7 +32,7 @@ describe("Cypher Aggregations Many with Alias directive", () => {
3232 type Movie {
3333 id: ID! @alias(property: "_id")
3434 title: String! @alias(property: "_title")
35- imdbRating: Int! @alias(property: "_imdbRating ")
35+ imdbRating: Int! @alias(property: "_imdb Rating ")
3636 createdAt: DateTime! @alias(property: "_createdAt")
3737 }
3838 ` ;
@@ -74,21 +74,21 @@ describe("Cypher Aggregations Many with Alias directive", () => {
7474
7575 expect ( formatCypher ( result . cypher ) ) . toMatchInlineSnapshot ( `
7676 "MATCH (this:\`Movie\`)
77- RETURN { id: { shortest: min(this.\` _id\` ), longest: max(this.\` _id\` ) }, title: { shortest:
78- reduce(aggVar = collect(this.\` _title\` )[0], current IN collect(this.\` _title\` ) |
77+ RETURN { id: { shortest: min(this._id), longest: max(this._id) }, title: { shortest:
78+ reduce(aggVar = collect(this._title)[0], current IN collect(this._title) |
7979 CASE
8080 WHEN size(current) < size(aggVar) THEN current
8181 ELSE aggVar
8282 END
8383 )
8484 , longest:
85- reduce(aggVar = collect(this.\` _title\` )[0], current IN collect(this.\` _title\` ) |
85+ reduce(aggVar = collect(this._title)[0], current IN collect(this._title) |
8686 CASE
8787 WHEN size(current) > size(aggVar) THEN current
8888 ELSE aggVar
8989 END
9090 )
91- }, imdbRating: { min: min(this.\`_imdbRating \`), max: max(this.\`_imdbRating \`), average: avg(this.\`_imdbRating \`) }, createdAt: { min: apoc.date.convertFormat(toString(min(this.\` _createdAt\` )), \\"iso_zoned_date_time\\", \\"iso_offset_date_time\\"), max: apoc.date.convertFormat(toString(max(this.\` _createdAt\` )), \\"iso_zoned_date_time\\", \\"iso_offset_date_time\\") } }"
91+ }, imdbRating: { min: min(this.\`_imdb Rating \`), max: max(this.\`_imdb Rating \`), average: avg(this.\`_imdb Rating \`) }, createdAt: { min: apoc.date.convertFormat(toString(min(this._createdAt)), \\"iso_zoned_date_time\\", \\"iso_offset_date_time\\"), max: apoc.date.convertFormat(toString(max(this._createdAt)), \\"iso_zoned_date_time\\", \\"iso_offset_date_time\\") } }"
9292 ` ) ;
9393
9494 expect ( formatParams ( result . params ) ) . toMatchInlineSnapshot ( `"{}"` ) ;
0 commit comments