apoc.static.getAll

Function Apoc Extended

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

Signature

apoc.static.getAll(prefix :: STRING?) :: (MAP?)

Input parameters

Name Type Default

prefix

STRING?

null

Usage Examples

The examples in this section assume that we have the following entries in the APOC configuration file (conf/apoc.conf):

apoc.static.twitter.bearer=ABCDEF
apoc.static.twitter.url=https://api.twitter.com/1.1/search/tweets.json?count=100&result_type=recent&lang=en&q=

The following returns all values with the twitter prefix:

RETURN apoc.static.getAll("twitter") AS value
Table 1. Results
value

{"bearer":"ABCDEF","url":"https://api.twitter.com/1.1/search/tweets.json?count=100&result_type=recent&lang=en&q="}