Skip to content

Commit

Permalink
Remove unsupported test in neo4j 4
Browse files Browse the repository at this point in the history
  • Loading branch information
angrykoala committed Jan 28, 2025
1 parent 80fb066 commit c911466
Showing 1 changed file with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,35 +88,4 @@ describe("query options", () => {
expect(result?.data?.[Movie.plural]).toEqual([{ id }, { id }, { id }]);
});

test("queries should work with version set to Cypher version", async () => {
const id = generate({
charset: "alphabetic",
});

const query = `
query($id: ID){
${Movie.plural}(where: {id: $id}){
id
}
}
`;

await neoSchema.checkNeo4jCompat();

await testHelper.executeCypher(
`
CREATE (:${Movie} {id: $id}), (:${Movie} {id: $id}), (:${Movie} {id: $id})
`,
{ id }
);

const result = await testHelper.executeGraphQL(query, {
variableValues: { id },
contextValue: { cypherQueryOptions: { runtime: "interpreted", addVersionPrefix: true } },
});

expect(result.errors).toBeFalsy();

expect(result?.data?.[Movie.plural]).toEqual([{ id }, { id }, { id }]);
});
});

0 comments on commit c911466

Please sign in to comment.