with Prepr (GraphQL) and Qdrant?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
prepr_graphql: {
type: "app",
app: "prepr_graphql",
}
},
async run({steps, $}) {
const data = {
"query": `query {
Posts {
items {
_id
title
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://graphql.prepr.io/${this.prepr_graphql.$auth.access_token}`,
data,
})
},
})
Qdrant - https://qdrant.tech/ is a high-performance vector search-engine/database.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qdrant: {
type: "app",
app: "qdrant",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.qdrant.$auth.url}`,
headers: {
"api-key": `${this.qdrant.$auth.api_key}`,
},
})
},
})