with MongoDB and Shopify?
Emit new event whenever a collection is updated, including whenever products are added or removed from a collection.
Emit new event for each draft order updated in a store.
Emit new event when an inventory level is updated.
Emit new event each time a new order is cancelled.
Emit new event for each new customer added to a store.
Emit new event for each new draft order submitted to a store.
Emit new event for each new fulfillment event for a store.
Emit new event for each new order submitted to a store.
Emit new event for each product updated in a store.
Emit new event for each new fulfillment event for a store.
Emit new event each time a customer's information is updated.
Create a new document in a collection of your choice. See the docs here
Adds a product or products to a custom collection. See the documentation
Execute an aggregation pipeline on a MongoDB collection. See the documentation
Search for specific documents or return all documents. See the docs here
Creates a metafield belonging to a resource. See the documentation
Creates a new order. For full order object details See the documentation
Creates a smart collection. You can fill in any number of rules by selecting more than one option in each prop.See the documentation
Deletes a metafield belonging to a resource. See the documentation
Retrieves a list of metafields that belong to a resource. See the documentation
Search for a custom collection by name/title. See the documentation
Search for a customer or a list of customers. See the documentation
Search for a fulfillment order or a list of fulfillment orders. See the documentation
Search for an order or a list of orders. See the documentation
Search for product variants or create one if not found. See the documentation
Update the tracking info for a fulfillment. See the documentation
Sets the inventory level for an inventory item at a location. See the documenation
Updates a metafield belonging to a resource. See the documentation
Update an existing product variant. See the documentation
The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb' export default defineComponent({ props: { mongodb: { type: "app", app: "mongodb", }, collection: { type: "string" }, filter: { type: "object" } }, async run({steps, $}) { const MongoClient = mongodb.MongoClient const { database, hostname, username, password, } = this.mongodb.$auth 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) const results = await db.collection(this.collection).find(this.filter).toArray(); $.export('results', results); await client.close() }, })
The Shopify Admin REST & GraphQL API unleashes a myriad of possibilities to automate and enhance online store operations. It provides programmatic access to Shopify functionalities, allowing users to manage products, customers, orders, and more. Leveraging the Shopify Admin API within Pipedream, developers can create custom workflows that automate repetitive tasks, sync data across platforms, and respond dynamically to events in Shopify.
This integration can be used as a custom app on your store, or for automating actions on behalf of merchants through your Shopify app.
Looking for integrating into the Shopify Partner API for your apps, themes or referrals? Check out our Shopify Partner API integration
import { axios } from "@pipedream/platform" export default defineComponent({ props: { shopify_developer_app: { type: "app", app: "shopify_developer_app", } }, async run({steps, $}) { const data = { "query": `{ shop { id name email } }`, } return await axios($, { method: "post", url: `https://${this.shopify_developer_app.$auth.shop_id}.myshopify.com/admin/api/2024-04/graphql.json`, headers: { "X-Shopify-Access-Token": `${this.shopify_developer_app.$auth.access_token}`, "Content-Type": `application/json`, }, data, }) }, })