FaunaDB

The database built for serverless, featuring native GraphQL

Integrate the FaunaDB API with the Node API

Setup the FaunaDB API trigger to run a workflow which integrates with the Node API. Pipedream's integration platform allows you to integrate FaunaDB and Node remarkably fast. Free for developers.

Run Node Code with Node API on New or Removed Documents in a Collection from FaunaDB API
FaunaDB + Node
 
Try it
New or Removed Documents in a Collection from the FaunaDB API

Emit new event each time you add or remove a document from a specific collection, with the details of the document.

 
Try it
Run Node Code with the Node API

Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.

 
Try it
Execute GraphQL Query with the FaunaDB API

Performs an arbitrary authorized GraphQL query. See docs here

 
Try it
Import GraphQL schema with the FaunaDB API

Import graphQL schema to a database. See docs here

 
Try it
Read From FaunaDB Collection with the FaunaDB API

Reads all documents from a given FaunaDB collection. See docs here

 
Try it

Connect FaunaDB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.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)
      }
    })
  },
})

Connect Node

1
2
3
4
5
6
7
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
  async run({ steps, $ }) {
    // Return data to use it in future steps
    return steps.trigger.event
  },
})