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 StitchClient cannot be accessed inside a js function

I have already called stClient.login function inside "addUser()" and "loginUser()" and they worked pretty well. I am able to add the user to my MongoDB database and find the user when login clicked. (dont bother with delete one) After finding a…
joy_jlee
  • 103
  • 2
  • 13
1
vote
0 answers

POST https://stitch.mongodb.com/api/client/v2.0/app/facebookclone-tlwvi/functions/call 403 ()

Error: MongoDB Users: Screenshot of permitted users. When I try to delete a document from MongoDB database deployed on Atlas, Forbidden error occurs. (Inserting works fine). Database name is- FbUsers, Collection- ClonedFbUsers Below is the code:…
joy_jlee
  • 103
  • 2
  • 13
1
vote
1 answer

How can we make unique and restrited fields in collection ( in mongodb stitch )?

How can we make unique keys in collection ? any expressions or rules for it ? Also i have created a collection users for user info and there is a field named role i want that only admin can update that field value. any suggestion how can i achieve…
Muhammad Furqan
  • 324
  • 3
  • 16
1
vote
2 answers

error connecting to MongoDB service cluster: server returned error on SASL authentication step: bad auth Authentication failed

I am trying to use the Stitch service by Mongodb. When I try to connect to MongoDB, it gives me this error : Error while executing pipeline …
Nikhil Wagh
  • 1,376
  • 1
  • 24
  • 44
1
vote
0 answers

Expired token for Email/Password Authentication using Mongodb-stitch JS API

I have a mongodb altas cluster on cloud.mongodb.com. As per the instructions in https://docs.mongodb.com/stitch/auth/email-auth/ I was able to register an email/password pair. About 12 hours later I received the confirmation email. I visited the…
cpliu338
  • 645
  • 1
  • 7
  • 20
1
vote
0 answers

Email/Password Authentication Mongodb-stitch Android API

This seems to be on a very new topic because the "stitch" or "mongodb-stitch" tags do not exist yet. I have a mongodb altas cluster on cloud.mongodb.com. The page https://docs.mongodb.com/stitch/auth/email-auth/ only teaches how to do things with…
cpliu338
  • 645
  • 1
  • 7
  • 20
0
votes
0 answers

How to identify MongoDB collection name from MongoDB AWS EventBridge Trigger

I created 2 MongoDB triggers for 2 collections from one Mongo cluster and 1 trigger for a collection from another cluster. So altogether 3 triggers. I used AWS Event Bridge to send trigger events to AWS Here are the Event Bridges that were created…
cmgchess
  • 7,996
  • 37
  • 44
  • 62
0
votes
1 answer

iOS App crashes in Release Mode but not in debug (using MongoDB and Stitch SDK)

I’m using MongoDB and Stitch SDK (StitchSDK ver. 6.4.0) . My app for iPhone runs in debug mode but when I build it as release and install it via TestFlight, it crashes. I tried changing the optimisation level in the build settings , but no…
0
votes
1 answer

'"hrms-dev"' not found in 'aud' claim in Mongodb?

I am using mongodb and firebase for authentication purpose. I have enabled Custom JWT Authentication. PFA pic of authentication provider. and also I have mentioned metadata fields and audience("hrms-dev") but when I try to login, I am getting error…
Ramesh Reddy
  • 127
  • 2
  • 13
0
votes
1 answer

Stitch - Mongodb SSL handshake failed: : [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:645)

I have used the stitch data integration tool to transfer MongoDB data to stitch. But While running it getting error as mention below Guide me 2021-06-21 12:40:32,381Z main - INFO Running tap-mongodb version 2.0.1 and target-stitch version…
Parag Shahade
  • 57
  • 3
  • 8
0
votes
0 answers

Exceeded Memory Limit despite allowDiskUse set to true

I get the same error StitchServiceError {message: "(Location16945) Exceeded memory limit for $group, … external sort. Pass allowDiskUse:true to opt in.", name: "StitchServiceError", errorCode: 11, errorCodeName: "MongoDBError" whether or not I pass…
David Kong
  • 578
  • 1
  • 5
  • 20
0
votes
0 answers

mongodb realm sync client on angular project

I configured realm sync at atlas,. My client side is angular application. I installed the npm install realm@beta When I try to import import Realm from "realm"; I get below error ERROR in src/app/app.component.ts:8:10 - error TS2305: Module…
giri
  • 26,773
  • 63
  • 143
  • 176
0
votes
0 answers

MongoDB - Sort and Skip methods not working

I am getting frustrated with these two methods. According to MongoDB documentation I can find limit sort and skip something like this: db.collection('demo_products').find({'groupid':{$exists: false}}).sort({'_id': 1}).limit(5).toArray() But when I…
0
votes
1 answer

MongoDB Stitch/Realm Function updateMany with aggregation error

I am trying to create a function to unlock leads that were locked before the specified time. I tested the updateMany function with an aggregation pipeline in the shell, but when trying to run it from a Realm Function I get an error... StitchError:…
0
votes
1 answer

not able to fetch using $and in mongo db

I'm trying to use $and in mongodb stitch function to get data using 2 different condition data = col.find( { $and: [ { "title": { title } }, { "address.countryName": { country } } ] } ).toArray; but this shows $undefined:true in response. please…
V.V
  • 3,082
  • 7
  • 49
  • 83