apoc.static.list

Procedure APOC Full

apoc.static.list(prefix) - returns statically stored values from config (apoc.static.<prefix>.*) or server lifetime storage

Signature

apoc.static.list(prefix :: STRING?) :: (key :: STRING?, value :: ANY?)

Input parameters

Name Type Default

prefix

STRING?

null

Output parameters

Name Type

key

STRING?

value

ANY?

Usage Examples

The example in this section assumes that we’ve first stored values in memory using apoc.static.set:

CALL apoc.static.set("twitter.user", "Michael");
CALL apoc.static.set("twitter.username", "mesirii");
The following returns all static values under the twitter prefix:
CALL apoc.static.list("twitter");
Table 1. Results
key

value

"user"

"Michael"

"username"

"mesirii"