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
2
votes
0 answers

React native : What should be the local database if I am using mongodb stitch

I am trying to set up react native app with MongoDB stitch So what should be the local database that needs to be used? Where can I find an application which uses MongoDB stitch + react-native+ local database? I saw the MongoDB documentation and…
dodSps
  • 43
  • 6
2
votes
2 answers

How to match a trigger on a specific field in mongodb stitch?

The $match expression on mongodb's stitch application does not work properly. I am trying to set up a simple update trigger that will only work on one field in a collection. The trigger setup provides a $match aggregation which seems simple enough…
2
votes
1 answer

How can I do $lookup from different collections depending on some condition?

I have 3 collections: 'group10', 'group20' and 'parent' I want to do $lookup in aggregation pipeline from one of these collections depending from condition in 'parent' collection. Collection 'parent': [{_id: 1, groupId: 10}, {_id: 2, groupId:…
Kirill
  • 41
  • 1
  • 5
2
votes
0 answers

Sync between Mongo Stitch and Local DB

I have setup MongoDB Atlas Server using Stitch and inserting data from an application using sync.insertone, it is inserted into the remote MongoDB Collections and also inserted into local database storage. But when I delete the application and…
Amit Shetye
  • 133
  • 1
  • 11
2
votes
1 answer

How to create a stitch Service with query params

I'm creating a Data API with MongoDB Stitch and i want to know how to create a function with query params (the params must be given when i call my API) i want to give like parametre the collection name when i call my API. there is my Function…
2
votes
0 answers

How to Convert React Native Objective C Project into Swift

I'm developing an iOS Project which includes MongoDB Stitch and React-Native. MongoDB API is written in Swift and React Native iOS Structure is based on Objective-C. So I decided to convert Objective-C Project into Swift so that I can work with the…
Amit Shetye
  • 133
  • 1
  • 11
2
votes
1 answer

How to use MongoDB Stitch in Next.js

I have planned to use mongoDB Stitch. But it provides browser SDK and server SDK differently. I tried both of them and i am getting some error. I believe this is because my app is isomorphic as i am using Next.js. Please guide me what can i do in…
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
2
votes
0 answers

Is Mongodb stitch functions can use bulkwrite()?

I try to call collection.bulkWrite() in MongoDB stitch functions, but I get an error - “bulkWrite is not a function”. Is it possible to use bulkWrite() in MongoDB stitch functions? Here is my stitch function - and I made it “run as a…
2
votes
1 answer

MongoDB Atlas - Configure IP Whitelist when hosting on AWS S3 and Cloudfront

How do I set the IP address Whitelist for a MongoDB Stitch application (MongoDB Atlas back-end) when the site is hosted on AWS S3 (using cloudfront)? The site is currently working though I have never set an IP address. I just don't want it to lose…
vbuser2004
  • 1,002
  • 1
  • 9
  • 20
2
votes
0 answers

invalid %project specification: projection string value must start with a \'%\'

Using the Mongo Stitch SDK for iOS, trying to execute a projection using $elemMatch gives a weird error that doesn't occur using the same query structure on mongo shell. var projection: Document = [ …
E.SK
  • 121
  • 9
2
votes
0 answers

Write to an S3 bucket using Stitch Functions

In MongoDB Atlas, I want to set a trigger such that whenever I Insert a record to a specific collection (e.g.: testCollection) it writes "Hello" to an S3 bucket. I was able to set a trigger successfully to invoke a Stitch function. However, this…
Eranga Heshan
  • 5,133
  • 4
  • 25
  • 48
2
votes
1 answer

MongoDB stitch-cli import failed

As described in the following page, https://docs.mongodb.com/stitch/import-export/create-stitch-app/ I made a file named stitch.json which contains an empty JSON. i.e. {} But when I run stitch-cli import, I got error following this app does not…
Satachito
  • 5,838
  • 36
  • 43
2
votes
1 answer

mongodb stitch android email/pass register 404 error

I am using MongoDb Stitch Android SDK to register a user with the email/password authentication system. But getting a 404 error when calling the method register(name,pass) in the SDK. Unexpected response code 404 for…
user510164
  • 626
  • 1
  • 8
  • 17
2
votes
1 answer

Insert not working in Mongo Stitch (JS)

I am currently trying to insert a document to my mongodb but when I call insert() on a collection, an error is produced saying (FacilitatorJS.js:26 Uncaught (in promise) TypeError: db.collection(...).insert is not a function at…
yasgari
  • 21
  • 3
2
votes
0 answers

MongoDb for offline data storage

Does Mongodb have a provision to store local data offline and upload data when online in android? Have read about NeDB and mini-mongo, which one is better?
Divya Nair
  • 39
  • 4
1 2
3
10 11