You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
1.0.3 with double quotes works fine.
1.1.0 with escaped double quotes breaks.
1.1.0 with non-escaped single quotes breaks.
1.0.3 with non-escaped single quotes works fine.
typeQuery {
getContent(userID: ID): [Content]
@cypher(
statement: """ MATCH (myUser:User {id: $userID}) OPTIONAL MATCH (myUser)<-[:HAS_USER]-(:Profile)-[:HAS_FRIEND]->(x)<-[:HAS_FRIEND]-(:Profile)-[:HAS_USER]->(myFriends:User) CALL { WITH myUser, myFriends MATCH (myFriends)-[:HAS_POST]->(post:Post) RETURN post UNION WITH myUser, myFriends MATCH (myFriends)-[:HAS_COMMENT]->(:Comment)<-[:HAS_COMMENT]-(post:Post) RETURN post UNION WITH myUser, myFriends MATCH (myFriends)-[:HAS_REACTION]->(:Reaction)<-[:HAS_REACTION]-(post:Post) RETURN post UNION WITH myUser, myFriends MATCH (myUser)<-[:HAS_USER]-(myProfile:Profile) MATCH (myProfile)-[:HAS_USER]->(myUsers:User) MATCH (myUsers)-[:HAS_POST]->(post:Post) RETURN post UNION WITH myUser, myFriends MATCH (myUser)<-[:HAS_USER]-(myProfile:Profile) MATCH (myProfile)-[:HAS_USER]->(myUsers:User) MATCH (myUsers)-[:HAS_COMMENT]->(:Comment)<-[:HAS_COMMENT]-(post:Post) RETURN post UNION WITH myUser, myFriends MATCH (myUser)<-[:HAS_USER]-(myProfile:Profile) MATCH (myProfile)-[:HAS_USER]->(myUsers:User) MATCH (myUsers)-[:HAS_REACTION]->(:Reaction)<-[:HAS_REACTION]-(post:Post) RETURN post } RETURN DISTINCT apoc.map.merge(properties(post), { __resolveType: 'Post' }) AS result ORDER BY result.modifiedDate DESC """
)
}
In 1.0.3, the above cypher returns 80+ records on an account.
In 1.1.0 it always returns a single record.
Type definitions
See above.
To Reproduce
Run the cypher with quotes in 1.0.3. and verify that it returns many records.
Upgrade to 1.1.0 and either escape double quotes or use single quotes and it will return only one record.
Expected behavior
I expect the same records to be returned in 1.1.0 as in 1.0.3.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Describe the bug
1.0.3 with double quotes works fine.
1.1.0 with escaped double quotes breaks.
1.1.0 with non-escaped single quotes breaks.
1.0.3 with non-escaped single quotes works fine.
In 1.0.3, the above cypher returns 80+ records on an account.
In 1.1.0 it always returns a single record.
Type definitions
See above.
To Reproduce
Run the cypher with quotes in 1.0.3. and verify that it returns many records.
Upgrade to 1.1.0 and either escape double quotes or use single quotes and it will return only one record.
Expected behavior
I expect the same records to be returned in 1.1.0 as in 1.0.3.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: