with Turso and Prepr (GraphQL)?
Creates a new database in a group for the organization or user. See the documentation
Returns a list of databases belonging to the organization or user. See the documentation
Returns a list of groups belonging to the organization or user. See the documentation
Returns a list of organizations the authenticated user owns or is a member of. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
turso: {
type: "app",
app: "turso",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.turso.tech/v1/organizations`,
headers: {
Authorization: `Bearer ${this.turso.$auth.api_token}`,
},
})
},
})
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,
})
},
})