Mercurial > hg > ng2-query-ismi
comparison app/query.service.ts @ 19:d75224bb8147
remove quotes for inverse relations.
author | casties |
---|---|
date | Thu, 21 Jan 2016 20:22:02 +0100 |
parents | 65bb467abcc6 |
children | 34cd764e234b |
comparison
equal
deleted
inserted
replaced
18:65bb467abcc6 | 19:d75224bb8147 |
---|---|
115 if (rel.indexOf(this.invRelPrefix) == 0) { | 115 if (rel.indexOf(this.invRelPrefix) == 0) { |
116 // inverse relation | 116 // inverse relation |
117 rel = rel.substr(this.invRelPrefix.length); | 117 rel = rel.substr(this.invRelPrefix.length); |
118 queryMatch += `<-[:${rel}]-(n${nIdx})`; | 118 queryMatch += `<-[:${rel}]-(n${nIdx})`; |
119 } else { | 119 } else { |
120 queryMatch += `-[:\`${rel}\`]->(n${nIdx})`; | 120 queryMatch += `-[:${rel}]->(n${nIdx})`; |
121 } | 121 } |
122 queryReturn = `RETURN n${nIdx}`; | 122 queryReturn = `RETURN n${nIdx}`; |
123 returnType = 'node'; | 123 returnType = 'node'; |
124 } | 124 } |
125 | 125 |