import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neo4j_auradb: {
type: "app",
app: "neo4j_auradb",
}
},
async run({steps, $}) {
const data = {
"statement": `RETURN date() AS currentDate, datetime() AS currentDateTime`,
}
return await axios($, {
method: "post",
url: `${this.neo4j_auradb.$auth.api_url}`,
auth: {
username: `${this.neo4j_auradb.$auth.username}`,
password: `${this.neo4j_auradb.$auth.password}`,
},
data,
})
},
})
Neo4j AuraDB uses API keys for authentication. When you connect your Neo4j AuraDB account, Pipedream securely stores the keys so you can easily authenticate to Neo4j AuraDB APIs in both code and no-code steps.
Neo4j AuraDB requires their users enter their Neo4j AuraDB instance's username and password in order to connect to their API. For more info, refer to Neo4j AuraDB’s documentation
Pipedream recommends using a strong and unique password for your Neo4j AuraDB account.
Note that your username and password foryour Neo4j AuraDB instance is shown only once when you create the instance.