Skip to content

Commit 12e2473

Browse files
authored
Merge pull request #595 from pe4cey/3.0-limit-meta-item-query
Limit meta data items returned by the cypher query
2 parents 1d4ff9a + 1efc536 commit 12e2473

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shared/modules/dbMeta/dbMetaDuck.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ export const updateSettings = (settings) => {
206206
// Epics
207207
export const metaQuery = `
208208
CALL db.labels() YIELD label
209-
WITH COLLECT(label) AS labels
209+
WITH COLLECT(label)[..1000] AS labels
210210
RETURN 'labels' as a, labels as result
211211
UNION
212212
CALL db.relationshipTypes() YIELD relationshipType
213-
WITH COLLECT(relationshipType) AS relationshipTypes
213+
WITH COLLECT(relationshipType)[..1000] AS relationshipTypes
214214
RETURN 'relationshipTypes' as a, relationshipTypes as result
215215
UNION
216216
CALL db.propertyKeys() YIELD propertyKey
217-
WITH COLLECT(propertyKey) AS propertyKeys
217+
WITH COLLECT(propertyKey)[..1000] AS propertyKeys
218218
RETURN 'propertyKeys' as a, propertyKeys as result
219219
UNION
220220
CALL dbms.functions() YIELD name, signature, description

0 commit comments

Comments
 (0)