apoc.static.get

Function APOC Full

apoc.static.get(name) - returns statically stored value from config (apoc.static.<key>) or server lifetime storage

Signature

apoc.static.get(key :: STRING?) :: (ANY?)

Input parameters

Name Type Default

key

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 the apoc.static.twitter.bearer value:

RETURN apoc.static.get("twitter.bearer") AS value;
Table 1. Results
value

"ABCDEF"