cypher
This component is experimental and therefore subject to change or removal outside of major version releases.
Executes a Cypher Query
Introduced in version 1.4.0.
- Common
- Advanced
# Common config fields, showing default values
output:
label: ""
cypher:
query: 'CREATE (p:Person {name: $name}) RETURN p' # No default (required)
values: {}
max_in_flight: 64
database: neo4j # No default (required)
uri: bolt://localhost:7687 # No default (required)
no_auth: false
basic_auth:
user: ""
password: ""
realm: ""
batching:
count: 0
byte_size: 0
period: ""
jitter: 0
check: ""
# All config fields, showing default values
output:
label: ""
cypher:
query: 'CREATE (p:Person {name: $name}) RETURN p' # No default (required)
values: {}
max_in_flight: 64
database: neo4j # No default (required)
uri: bolt://localhost:7687 # No default (required)
no_auth: false
basic_auth:
user: ""
password: ""
realm: ""
tls:
enabled: false
skip_cert_verify: false
enable_renegotiation: false
root_cas: ""
root_cas_file: ""
client_certs: []
batching:
count: 0
byte_size: 0
period: ""
jitter: 0
check: ""
processors: [] # No default (optional)
Executes a Cypher Query
The query
field is expected to be a valid cypher query with 0 or more parameters with the $
syntax:
query: CREATE (p:Person {name: $name, age: $age}) RETURN p
The values
field is expected to be a map where the keys are equal to the parameters in the query,
and the values are strings (bloblang interpolations are allowed):
values:
name: ${! json("name") }
age: ${! json("age") }
Examples
- Create Node
Here we execute a cypher query that takes the value of $name from the interpolated field in the values map:
output:
cypher:
database: neo4j
uri: bolt://localhost:7687
basic_auth:
user: neo4j
password: password
query: |
CREATE (p:Person {name: $name}) RETURN p
values:
name: ${! json("name") }
batching:
count: 0
Fields
query
The cypher query to execute.
Type: string
# Examples
query: 'CREATE (p:Person {name: $name}) RETURN p'
values
A map of strings -> bloblang interpolations that form the values of the references in the query i.e. $name. This field supports interpolation functions.
Type: object
Default: {}
# Examples
values:
name: ${! json("name") }
max_in_flight
The maximum number of messages to have in flight at a given time. Increase this to improve throughput.
Type: int
Default: 64
database
The name of the database to connect to.
Type: string
# Examples
database: neo4j
uri
The URL of the database engine.
Type: string
# Examples
uri: bolt://localhost:7687
no_auth
Set to true to connect without authentication.
Type: bool
Default: false
basic_auth
Basic Authentication fields
Type: object
basic_auth.user
The username for basic auth.
Type: string
Default: ""
basic_auth.password
The password for basic auth.
This field contains sensitive information that usually shouldn't be added to a config directly, read our secrets page for more info.
Type: string
Default: ""
basic_auth.realm
The realm for basic auth.
Type: string
Default: ""
tls
Custom TLS settings can be used to override system defaults.
Type: object
tls.enabled
Whether custom TLS settings are enabled.
Type: bool
Default: false
tls.skip_cert_verify
Whether to skip server side certificate verification.
Type: bool
Default: false
tls.enable_renegotiation
Whether to allow the remote server to repeatedly request renegotiation. Enable this option if you're seeing the error message local error: tls: no renegotiation
.
Type: bool
Default: false
Requires version 1.0.0 or newer