Questions tagged [mongodb-stitch]

For questions related to the MongoDB Stitch Service API.

Stitch allows building an API for a MongoDB back end and other integrated services by concentrating on application logic rather than detail of delivery for data manipulation code.

Documentation is available at https://docs.mongodb.com/stitch/

And there are various tutorials available: https://docs.mongodb.com/stitch/tutorials/

165 questions
1
vote
1 answer

mongodb stitch browser sdk AwsServiceClient undefined

Why is AwsServiceClient undefined? npm install mongodb-stitch-browser-sdk (4.7.1) npm install mongodb-stitch-browser-services-aws-s3 (4.7.1) import { Stitch, AwsServiceClient, AwsRequest } from "mongodb-stitch-browser-sdk"; I am trying to upload a…
dnndeveloper
  • 1,631
  • 2
  • 19
  • 36
1
vote
1 answer

MongoDB Stitch trigger delay

Are there known delays with MongoDB Stitch triggers? I see a 1-2 minute gap between authentication events and trigger completion. I have a simple Authentication Trigger which executes on Create. In other words, the trigger fires when a new user is…
It'sNotMe
  • 1,184
  • 1
  • 9
  • 29
1
vote
1 answer

'then is not a function' in MongoDB Stitch Webhook

The MongoDB Stitch Webhook docs describe my precise use case: using a POST method to call insertOne then return the inserted _id. I pasted the example below (directly from the docs) into the Stitch Function Editor. exports = function(payload,…
It'sNotMe
  • 1,184
  • 1
  • 9
  • 29
1
vote
1 answer

MongoDB Stitch in Angular 7 application

I am trying to add connectivity to MongoDB Stich in my Angular 7 application but app fails with error: bson.browser.esm.js:453 Uncaught ReferenceError: global is not defined I am using Angular 7.2.12 and have installed mongodb-stitch-browser-sdk v…
Tommy
  • 161
  • 1
  • 2
  • 15
1
vote
2 answers

MongoDB Stitch SDK returns "aggregation stage "$lookup" is not supported"

Is the latest Stitch not supporting $lookup? I'm using mongodb-stitch-server-sdk@4.3.2 and my server is on version 4.0.6. I have a query like the following: const { Stitch, UserPasswordCredential, RemoteMongoClient } =…
Robbie Cronin
  • 1,557
  • 2
  • 10
  • 15
1
vote
1 answer

How to get auth code for Google OAuth using the Mongo Stitch React-Native SDK?

From the docs it seems like there is no other way to sign-in using Google other than using the GoogleCredential constructor which takes an authCode as a mandatory parameter, how should I get it? For an example of [[loginWithRedirect]], see Facebook…
DoHn
  • 625
  • 7
  • 15
1
vote
1 answer

Use of unresolved identifier 'DefaultConflictHandlers'

I am following the Build a Mobile App With Sync tutorial MongoDB provides but running into an error when configuring the sync on a particular collection. This is my code: todoCollection.sync.configure( conflictHandler:…
Robbie Cronin
  • 1,557
  • 2
  • 10
  • 15
1
vote
1 answer

MongoDB Stitch - Service for Authentication and Issuing Tokens

As per documentation, there are several Authentication Providers which are available via SDK to authenticate a user. Regardless of that, I have a few queries to implement Token Based Authentication via configuring External Services. Is there a way…
Hary
  • 5,690
  • 7
  • 42
  • 79
1
vote
2 answers

Difference between limit() and $limit in Mongodb

inside my frontend and after authenticating a user, I have the following code that works: .. ... .then(authedUser => db .collection('comments') .find({}, { limit: 1 }) .asArray() ) .then(doc =>…
Mauricio Maroto
  • 119
  • 1
  • 2
  • 11
1
vote
1 answer

MongoDB Stitch REST API - Payload Signature Verification

I am working on a SANDBOX Cluster & a new app created by me in MongoDB Stitch. I need to understand "Payload Signature Verification" in MongoDB Stitch App. Lets say, I need to make a REST GET API, which will fetch me a list of products, but this API…
1
vote
1 answer

Limits on maximum parallel trigger executions of MongoDB Stitch

I am trying to use MongoDB Stitch for real-time analytics. The MongoDB Stitch documentation documentation states the following note: Stitch limits the execution of trigger functions to a rate of 50 executions per second across all triggers in an…
Manoj Aggarwal
  • 317
  • 2
  • 14
1
vote
1 answer

Mongodb Stitch unsupport $geoNear in collection.aggregate(). Alternative $geoWithin does not have includeLocs

$geoNear matching nearest array in this question suggested to use $geoNear and its option "includeLocs". However, this aggregate is unsupported in MongoDb Stitch function. You can read in documentation…
smg C
  • 33
  • 6
1
vote
0 answers

How does mongoDB stitch compares with Parse Server and firebase?

Im looking for a complete backend solution but I haven't been able to find information on how does mongoDB Stitch compares to other alternatives. In general I feel like I like the product but I worry about the long term support.
tlalco
  • 352
  • 4
  • 19
1
vote
1 answer

mongodb stitch returns all fields

I'm trying to get just one field back for all my documents. I'm new to mongoDB but I can't understand why this isn't working. var docs = db.collection("articles").find({}, { _id: 0, title:1}).asArray(); I have this query which returns ALL fields,…
1
vote
1 answer

MongoDB Stitch and Angular 6 application

I'm creating a service for my MongoDB Stitch connections and I'm having an issue where if I refresh my page I get an error saying: client for app 'xyxyxyxyxyxy' has not yet been initialized And when I try to initialize it I get an error saying it…
Ennio
  • 1,147
  • 2
  • 17
  • 34