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
3
votes
1 answer

How to get metadata out of AWS Cognito JWT to use it for the MongoDB Stitch Metadata Fields?

I am using AWS Cognito as the custom authentication for my MongoDB Stitch app. I can successfully retrieve the JWT from AWS Cognito and login to MongoDB Stitch. I would like to store attributes in the JWT. I need help on how to get the JWT path to…
3
votes
1 answer

Unable to search for ObjectID in MongoDB stitch service

I've been trying for hours to make this simple query work, but somehow it doesn't. I've created a HTTP service in MongoDB Stitch and I call the service with an ID like this https://stitchurl.myservice?ID=blablabla inside the service I want to…
3
votes
1 answer

Why my mongodb-stitch service return me the value type ($numberLong, $numberInt,…)?

Why my mongodb-stitch service return me the type of value ($numberLong, $numberInt,…) while the Compass application do not do ? How to have the same varialble format like in Compas or how to handle this with Stitch ? Mongodb-stitch enter image…
Lolo -
  • 31
  • 1
3
votes
2 answers

How can we skip records in mongodb stitch?

I can see the limit option in mongoDB Stitch docs but unable to find how can we skip records for pagination.
Muhammad Furqan
  • 324
  • 3
  • 16
3
votes
1 answer

Signup not working - Server returns 404 Error Code

MongoDB Stitch: iOS SDK - Signup Issue: I tried this: let stitchClient = StitchClient(appId: "") stitchClient.register(email: email, password: password).then({ () in print("Signed up here") }) .catch({ (err) in print("Sign up…
Saru
  • 863
  • 1
  • 15
  • 23
2
votes
1 answer

MongoDB Realm vs. Stitch login times - why is Realm so slow?

I've built a web tool using MongoDB databases hosted on Atlas, connected via Stitch. From what I understand, Stitch is now depreciated and has been turned into MongoDB Realm. So I tried to update my site, using the new Realm App instead of Stitch.…
2
votes
0 answers

Realm V10, How to persist authentication in React native

MongoDB Realm was recently launched, I am following the documentation for authentication but when I restart the application and re-enter the data (auth) does not persist, What could have happened??
andrefedev
  • 85
  • 4
2
votes
2 answers

MongoDB Stitch error: Inserting item, no rule exists for namespace

Using MongoDB Stitch with my iOS App, an authenticated user can't write to the database – the error in the log (and the console) reads as no rule exists for namespace. Find screenshots of my configuration and the log attached – any help is much…
j___.___j
  • 286
  • 1
  • 3
  • 20
2
votes
1 answer

StitchServiceError "aws: "aws_service" is a required string", errorCodeName: InvalidParameter

I'm setting up AWS S3 bucket to upload audio files to using MongoDB Stitch (here are the docs mongo s3 docs . After following the instructions and authenticating my user I keep geting this error when trying to upload the selected file: error image…
2
votes
1 answer

React Native + MongoDB Stitch: this.client.getServiceClient is not a function

I am trying to create a simple connection to my MongoDB database collection for my Stitch App. In the componentDidMount() method I initialize the default app client and store it in a variable of the component. But when I try to set the MongoDB…
Maëlle
  • 629
  • 1
  • 11
  • 25
2
votes
2 answers

Error while using context in Mongo-Atlas Stitch

I'm trying to create a stitch for a Mongo-Atlas cluster. Here is the simple webhook function exports = function(payload) { const mongodb = context.services.get("mongodb-atlas"); const cyber = mongodb.db("cyber"); }; unfortunately running…
AbsoluteSith
  • 1,917
  • 25
  • 60
2
votes
1 answer

StitchServiceError {message: "insert not permitted"} mongodb

I'm using mongodb stitch for backend with Users can read all data, but only write their own data template. Logging in with email/password is working. However when I tried to insert data, I'm getting this error: StitchServiceError {message:…
ibragimov
  • 121
  • 1
  • 9
2
votes
2 answers

TypeError: mongodb.db(...).collection(...).find(...).sort is not a function mongodb

I'm trying to sort collection by name and getting this error. handleSortByName = () => { const mongodb = Stitch.defaultAppClient.getServiceClient(RemoteMongoClient.factory, 'mongodb-atlas'); mongodb .db('users') …
ibragimov
  • 121
  • 1
  • 9
2
votes
1 answer

Are dependencies included in the import/export in MongoDB Stitch?

I tried MongoDB Stitch earlier this year, and at the time it did not feel like a finished product (for example, apps cannot be renamed). I am giving it another go, and this time I am interested to see how I could create automated tests for my Stitch…
halfer
  • 19,824
  • 17
  • 99
  • 186
2
votes
0 answers

StitchError: service not found: 'mongodb-atlas'

I am having a problem getting data in android from atlas mongoDB (stitch): service not found: 'mongodb-atlas' StitchError: service not found: 'mongodb-atlas' { "arguments": [ { "database": "vutuduDB", "collection": "test", …
eyal gromzin
  • 155
  • 2
  • 11
1
2
3
10 11