mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
write query for delete operations
This commit is contained in:
parent
46af4d80d0
commit
5e758328f1
@ -29,7 +29,7 @@ export default {
|
||||
* It's suggested to use query builder feature (https://github.com/adam-cowley/neode/issues/67)
|
||||
* However, pure cypher query looks cleaner IMO
|
||||
*/
|
||||
await neode.cypher(
|
||||
await neode.writeCypher(
|
||||
`MATCH (user:User {id: $currentUser.id})-[relation:FOLLOWS]->(followedUser:User {id: $followedUserId})
|
||||
DELETE relation
|
||||
RETURN COUNT(relation) > 0 as isFollowed`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user