MongoDB

The global cloud database service for modern applications

Go to site

Integrate the MongoDB API with the HTTP / Webhook API

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

HTTP / Webhook Request

Make an HTTP or webhook request and return the response as a step export.

 
Try it
Insert a document into a collection
 
Try it

Connect MongoDB

const MongoClient = require('mongodb').MongoClient

const {
  database,
  hostname,
  username,
  password,
} = auths.mongodb

const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, { 
  useNewUrlParser: true, 
  useUnifiedTopology: true 
})

const db = client.db(database)
// Enter your target collection as a parameter to this step
this.res = await db.collection(params.collection).insertOne({ name: "Luke Skywalker" })

await client.close()

Connect HTTP / Webhook

return await require("@pipedreamhq/platform").axios(this, {
  url: "http://api.open-notify.org/iss-now.json"
})

Community Posts

A Look at Pipedream
A Look at Pipedream
I'm going to build a workflow that will search Twitter every hour for a keyword. It will take the results, format them nicely, and then email it.
Building a Traffic-Based Workflow in Pipedream
Building a Traffic-Based Workflow in Pipedream
Normally I don't like to blog about stuff that isn't generally available to all, but as it will be available sometime soon, I decided to go ahead anyway. And I built something really cool I want to share so that's another reason to talk about this now!