The distributed serverless database combining the flexibility of NoSQL with the relational querying capabilities of SQL systems.
Go to sitemodule.exports = defineComponent({
props: {
faunadb: {
type: "app",
app: "faunadb",
}
},
async run({steps, $}) {
const faunadb = require('faunadb')
const q = faunadb.query
const client = new faunadb.Client({ secret: this.faunadb.$auth.secret })
// Lists collections in the database tied to your secret key
const collectionsPaginator = await client.paginate(q.Collections())
this.collections = []
await collectionsPaginator.each(page => {
for (const collection of page) {
this.collections.push(collection.id)
}
})
},
})
Emit new event each time you add or remove a document from a specific collection, with the details of the document.
Performs an arbitrary authorized GraphQL query. See docs here
Reads all documents from a given Fauna collection. See docs here
Fauna uses API keys for authentication. When you connect your Fauna account, Pipedream securely stores the keys so you can easily authenticate to Fauna APIs in both code and no-code steps.
Create a key in the Security section of your FaunaDB dashboard, then enter the Secret below.