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
I've noticed that sub queries and where clauses, do not get correctly intended. (at least in my opinion).
Example:
MATCH (subject:User)
WHERE (subject.id= $subjectId) OR (subject.openId= $subjectId)
CALL{WITHsubjectCALLapoc.path.expandConfig(subject, {relationshipFilter:'IS_IN',labelFilter:'/User',uniqueness:'NODE_GLOBAL'}) YIELDpathWITHnodes(path) ASnodesUNWINDnodesASnWITHnWHERE
(n.id= $userId) AND'User'INlabels(n)
RETURNnASsUNIONWITHsubjectRETURNsubjectASs
}
WITHsWHEREs.id= $userIdRETURNs
imo it should look like this:
MATCH (subject:User)
WHERE (subject.id= $subjectId) OR (subject.openId= $subjectId)
CALL{WITHsubjectCALLapoc.path.expandConfig(subject, {relationshipFilter:'IS_IN',labelFilter:'/User',uniqueness:'NODE_GLOBAL'}) YIELDpathWITHnodes(path) ASnodesUNWINDnodesASnWITHnWHERE
(n.id= $userId) AND'User'INlabels(n)
RETURNnASsUNIONWITHsubjectRETURNsubjectASs
}
WITHsWHEREs.id= $userIdRETURNs
(not sure on the apoc, call, no strong opinion there). The CALL {...} expresson and the WHERE expression should add an intendation imo
The text was updated successfully, but these errors were encountered:
reckter
changed the title
Missing level of intendations an sub-queries and where clauses
Missing level of indentations an sub-queries and where clauses
Jun 27, 2023
Hey, thanks for the plugin!
I've noticed that sub queries and where clauses, do not get correctly intended. (at least in my opinion).
Example:
imo it should look like this:
(not sure on the apoc, call, no strong opinion there). The
CALL {...}
expresson and theWHERE
expression should add an intendation imoThe text was updated successfully, but these errors were encountered: