new query format

This commit is contained in:
Ulf Gebhardt 2023-05-16 11:54:10 +02:00
parent 301a6e48ff
commit 7a64dbab27
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -251,7 +251,7 @@ describe('SignupVerification', () => {
it('connects User with EmailAddress', async () => {
const cypher = `
MATCH(email:EmailAddress)-[:BELONGS_TO]->(u:User {name: {name}})
MATCH(email:EmailAddress)-[:BELONGS_TO]->(u:User {name: $name})
RETURN email
`
await mutate({ mutation, variables })
@ -281,7 +281,7 @@ describe('SignupVerification', () => {
it('marks the EmailAddress as primary', async () => {
const cypher = `
MATCH(email:EmailAddress)<-[:PRIMARY_EMAIL]-(u:User {name: {name}})
MATCH(email:EmailAddress)<-[:PRIMARY_EMAIL]-(u:User {name: $name})
RETURN email
`
await mutate({ mutation, variables })