new query format

This commit is contained in:
Ulf Gebhardt 2023-05-16 11:54:22 +02:00
parent c2583bad0c
commit 46af4d80d0
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -147,7 +147,7 @@ describe('follow', () => {
variables,
})
const relation = await neode.cypher(
'MATCH (user:User {id: {id}})-[relationship:FOLLOWS]->(followed:User) WHERE relationship.createdAt IS NOT NULL RETURN relationship',
'MATCH (user:User {id: $id})-[relationship:FOLLOWS]->(followed:User) WHERE relationship.createdAt IS NOT NULL RETURN relationship',
{ id: 'u1' },
)
const relationshipProperties = relation.records.map(