with Neo4j AuraDB and DeepImage?
Creates a new node in the Neo4j AuraDB instance. See the documentation
Creates a relationship between two existing nodes. See the documentation
Removes the background from the provided image using DeepImage. See the documentation
Upscales the provided image using Deep Image. See the documentation
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
deepimage: {
type: "app",
app: "deepimage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://deep-image.ai/rest_api/me`,
headers: {
"content-type": `application/json`,
"x-api-key": `${this.deepimage.$auth.api_key}`,
},
})
},
})