Skip to content

Commit caa9e02

Browse files
authored
Merge pull request #718 from GraphScope/chore-0304
feat: fix cypher statement
2 parents f84a3bb + acb9e58 commit caa9e02

File tree

1 file changed

+3
-4
lines changed
  • packages/studio-explore/src/components/Next/Neighbors

1 file changed

+3
-4
lines changed

packages/studio-explore/src/components/Next/Neighbors/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ const InspectNeighbor = props => {
4949
const queryNeighbors = async () => {
5050
const selectIds = selectedKey.split('__');
5151
const queryKey = `${id}_${selectedKey}`;
52+
5253
if (!CacheData[queryKey] && selectIds.length !== 0) {
53-
const script = `MATCH(a)-[b]-(c)
54-
where elementId(a) IN [${selectIds}]
55-
return a,b,c limit 50000
56-
`;
54+
const script = `MATCH(a)-[b]-(c) where elementId(a) IN [${selectIds}] return a,b,c`;
55+
console.log('%c Query Neighbors', 'color:green', script);
5756
const res = await getService<IQueryStatement>('queryStatement')(script);
5857
CacheData[queryKey] = res;
5958
}

0 commit comments

Comments
 (0)