Skip to content

Commit

Permalink
Update snapshots on inteface tck tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrykoala committed Sep 5, 2022
1 parent 2607021 commit 7e0baa2
Showing 1 changed file with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ describe("Interface Relationships", () => {
WITH this
CALL {
WITH this
MATCH (this)-[:ACTED_IN]->(this_Movie:Movie)
MATCH (this)-[thisthis0:ACTED_IN]->(this_Movie:\`Movie\`)
RETURN { __resolveType: \\"Movie\\", runtime: this_Movie.runtime, title: this_Movie.title } AS actedIn
UNION
WITH this
MATCH (this)-[:ACTED_IN]->(this_Series:Series)
MATCH (this)-[thisthis1:ACTED_IN]->(this_Series:\`Series\`)
RETURN { __resolveType: \\"Series\\", episodes: this_Series.episodes, title: this_Series.title } AS actedIn
}
RETURN collect(actedIn) AS actedIn
Expand Down Expand Up @@ -131,11 +131,11 @@ describe("Interface Relationships", () => {
WITH this
CALL {
WITH this
MATCH (this)-[:CURRENTLY_ACTING_IN]->(this_Movie:Movie)
MATCH (this)-[thisthis0:CURRENTLY_ACTING_IN]->(this_Movie:\`Movie\`)
RETURN { __resolveType: \\"Movie\\", runtime: this_Movie.runtime, title: this_Movie.title } AS currentlyActingIn
UNION
WITH this
MATCH (this)-[:CURRENTLY_ACTING_IN]->(this_Series:Series)
MATCH (this)-[thisthis1:CURRENTLY_ACTING_IN]->(this_Series:\`Series\`)
RETURN { __resolveType: \\"Series\\", episodes: this_Series.episodes, title: this_Series.title } AS currentlyActingIn
}
RETURN this { currentlyActingIn: currentlyActingIn } as this"
Expand Down Expand Up @@ -173,11 +173,11 @@ describe("Interface Relationships", () => {
WITH this
CALL {
WITH this
MATCH (this)-[:ACTED_IN]->(this_Movie:Movie)
MATCH (this)-[thisthis0:ACTED_IN]->(this_Movie:\`Movie\`)
RETURN { __resolveType: \\"Movie\\", runtime: this_Movie.runtime, title: this_Movie.title } AS actedIn
UNION
WITH this
MATCH (this)-[:ACTED_IN]->(this_Series:Series)
MATCH (this)-[thisthis1:ACTED_IN]->(this_Series:\`Series\`)
RETURN { __resolveType: \\"Series\\", episodes: this_Series.episodes, title: this_Series.title } AS actedIn
}
WITH *
Expand Down Expand Up @@ -218,8 +218,8 @@ describe("Interface Relationships", () => {
WITH this
CALL {
WITH this
MATCH (this)-[:ACTED_IN]->(this_Movie:Movie)
WHERE this_Movie.title STARTS WITH $this_actedIn.args.where._on.Movie.title_STARTS_WITH
MATCH (this)-[thisthis0:ACTED_IN]->(this_Movie:\`Movie\`)
WHERE this_Movie.title STARTS WITH $thisparam0
RETURN { __resolveType: \\"Movie\\", runtime: this_Movie.runtime, title: this_Movie.title } AS actedIn
}
RETURN collect(actedIn) AS actedIn
Expand All @@ -229,22 +229,12 @@ describe("Interface Relationships", () => {

expect(formatParams(result.params)).toMatchInlineSnapshot(`
"{
\\"this_actedIn\\": {
\\"args\\": {
\\"where\\": {
\\"_on\\": {
\\"Movie\\": {
\\"title_STARTS_WITH\\": \\"The \\"
}
}
}
}
}
\\"thisparam0\\": \\"The \\"
}"
`);
});

test.only("Filter overriding using onType", async () => {
test("Filter overriding using onType", async () => {
const query = gql`
query {
actors {
Expand Down

0 comments on commit 7e0baa2

Please sign in to comment.