FaunaDB

The database built for serverless, featuring native GraphQL

Integrate the FaunaDB API with the Go API

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

Run Go Code with Go API on New or Removed Documents in a Collection from FaunaDB API
FaunaDB + Go
 
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 Go Code with the Go API

Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go 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 Go

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"fmt"

	pd "github.com/PipedreamHQ/pipedream-go"
)

func main() {
	// Access previous step data using pd.Steps
	fmt.Println(pd.Steps)

	// Export data using pd.Export
	data := make(map[string]interface{})
	data["name"] = "Luke"
	pd.Export("data", data)
}