
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
mongodb-realm-api-client
Advanced tools
A mongdb realm api client for nodejs.
This is using mongodb-stitch-api-client under the hood. Soon mongodb-stitch-api-client will be deprecated.
npm install mongodb-realm-api-client
The basic syntax is:
const getClient = require("mongodb-realm-api-client");
const {trigger, application} = getClient({
"publicKey": "some public key",
"privateKey": "some private key",
"baseUrl": "https://stitch.mongodb.com/api/admin/v3.0",
"projectId": "some project/group id",
"appId": "some stitch appId" // Optional when you are creating app using Application
});
await trigger.getAll();
const createApplication = await application.create({"name": "myFirstStitchApp", "deployment_model": "LOCAL", "location": "IE"});
npm test
Following entities are currently supported
PromiseCreates the stitch application
Kind: instance method of Application
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Default | Description |
|---|---|---|---|
| body | Object | Object that contains stitch application details. | |
| [productType] | string | standard | Optional product type. standard or atlas |
PromiseReturns all applications
Kind: instance method of Application
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Default | Description |
|---|---|---|---|
| [productType] | string | standard | Optional product type. standard or atlas |
PromiseReturns a single application as per app Id
Kind: instance method of Application
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| appId | string | Application Id |
PromiseDeletes a single application as per app Id
Kind: instance method of Application
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| appId | string | Application Id |
PromiseCreates the service
Kind: instance method of Service
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| body | Object | Object that contains stitch service details. |
PromiseUpdates the service
Kind: instance method of Service
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | Service Id. |
| body | Object | Object that contains stitch service details. |
PromiseReturns all services
Kind: instance method of Service
Returns: Promise - - promise which resolves on success and rejects on error
PromiseReturns single service as per service Id
Kind: instance method of Service
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | Service Id |
PromiseDeletes single service as per service Id
Kind: instance method of Service
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | Service Id |
PromiseCreates the trigger
Kind: instance method of Trigger
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| body | Object | Object that contains stitch trigger details. |
PromiseUpdates the trigger
Kind: instance method of Trigger
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| triggerId | string | Service Id. |
| body | Object | Object that contains stitch trigger details. |
PromiseResumes the trigger
Kind: instance method of Trigger
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| triggerId | string | Service Id. |
| useResumeToken | bool | Whether to use resume token for restarting trigger. Default is true. |
PromiseReturns all triggers
Kind: instance method of Trigger
Returns: Promise - - promise which resolves on success and rejects on error
PromiseReturns single trigger as per trigger Id
Kind: instance method of Trigger
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| triggerId | string | Trigger Id |
PromiseDeletes single trigger as per trigger Id
Kind: instance method of Trigger
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| triggerId | string | Trigger Id |
PromiseReturns the bearer token as per public key and private key
Kind: instance method of Token
Returns: Promise - - promise which resolves on success and rejects on error
PromiseCreates the function
Kind: instance method of StitchFunction
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| body | Object | Object that contains stitch functions details. |
PromiseUpdates the function
Kind: instance method of StitchFunction
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| functionId | string | Service Id. |
| body | Object | Object that contains stitch function details. |
PromiseReturns all functions
Kind: instance method of StitchFunction
Returns: Promise - - promise which resolves on success and rejects on error
PromiseReturns single function as per function Id
Kind: instance method of StitchFunction
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| functionId | string | function Id |
PromiseDeletes single function as per function Id
Kind: instance method of StitchFunction
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| functionId | string | function Id |
PromiseCreates the rule
Kind: instance method of Rule
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| body | Object | Object that contains stitch rules details. |
PromiseUpdates the rule
Kind: instance method of Rule
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| ruleId | string | Service Id. |
| body | Object | Object that contains stitch rule details. |
PromiseReturns all rules
Kind: instance method of Rule
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
PromiseReturns single rule as per rule Id
Kind: instance method of Rule
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| ruleId | string | rule Id |
PromiseDeletes single rule as per rule Id
Kind: instance method of Rule
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| ruleId | string | rule Id |
PromiseReturns all the logs as per options passed
Kind: instance method of Log
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Default | Description |
|---|---|---|---|
| [options] | object | {} | Options having parameter which will be passed as query string |
PromiseSet the allowed HTTP origins from which Stitch should allow requests.
Kind: instance method of Security
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| body | Object | Object that contains allowed http origins |
PromiseList the allowed HTTP origins from which Stitch should allow requests.
Kind: instance method of Security
Returns: Promise - - promise which resolves on success and rejects on error
PromiseSend a confirmation email.
Kind: instance method of Email
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
string | Email address. |
PromiseConfirm a pending user.
Kind: instance method of Email
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
string | Email address. |
PromiseRe-runs a pending user’s confirmation workflow.
Kind: instance method of Email
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
string | Email address. |
PromiseCreates the webhook
Kind: instance method of Webhook
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| body | Object | Object that contains stitch webhooks details. |
PromiseUpdates the webhook
Kind: instance method of Webhook
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| webhookId | string | Service Id. |
| body | Object | Object that contains stitch webhook details. |
PromiseReturns all webhooks
Kind: instance method of Webhook
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
PromiseReturns single webhook as per webhook Id
Kind: instance method of Webhook
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| webhookId | string | webhook Id |
PromiseDeletes single webhook as per webhook Id
Kind: instance method of Webhook
Returns: Promise - - promise which resolves on success and rejects on error
| Param | Type | Description |
|---|---|---|
| serviceId | string | service id |
| webhookId | string | webhook Id |
FAQs
A mongodb realm api client for nodejs.
The npm package mongodb-realm-api-client receives a total of 0 weekly downloads. As such, mongodb-realm-api-client popularity was classified as not popular.
We found that mongodb-realm-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.

Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.