Published
Edited
Apr 14, 2021
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
response = {
if (!AURA_ENDPOINT || !USERNAME || !PASSWORD) return;
const neo4j = await require("neo4j-driver");
const driver = neo4j.driver(AURA_ENDPOINT, neo4j.auth.basic(USERNAME, PASSWORD), { encrypted: true } );
const session = driver.session();
return session.readTransaction(tx => tx.run(query))
.then(result => result).catch(e => e).finally(() => {
session.close();
driver.close();
});
}
Insert cell
mappedResponse = (response ? response.records : []).map(r => r.toObject());
Insert cell
import { text, textarea, password } from "@jashkenas/inputs";
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more