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

Object not locked by thread before wait in Android app on Non Activity

I am calling a method CreateOne from Non-Activity class and CreateOne method needs to return an Object after Task execution. So I have addded the below line after calling the Task. task.wait(); But it is returning error like object not locked by…
user1618825
1
vote
0 answers

'show' is not recognized as an internal or external command, operable program or batch file

After successfully executing mongod --version command, when I tried running show dbs command to view database it is showing me the error: 'show' is not recognized as an internal or external command, operable program or batch file. The result…
1
vote
1 answer

Can the MongoDB Realm Swift API still just insert a struct into an Atlas collection, like in Stitch?

I have a hierarchy of codable Swift structs that I need to store in MongoDB in the cloud (Atlas). I do not need to persist these structs locally, and this app won't need to access this data once it's stored. (There are other apps accessing it, but…
pua666
  • 326
  • 1
  • 7
1
vote
1 answer

Firebase Auth with MongoDB Stitch Custom Auth: How to pass user info from Firebase to MongoDB

I am integrating Firebase Authentication with MongoDB Stitch Custom Authentication on Swift iOS and would like to pass user's information from firebase to mongodb so that user's email or name can displayed on MongoDB's console here: Base on…
Koh
  • 2,687
  • 1
  • 22
  • 62
1
vote
2 answers

MongoDB Stitch iOS: Pagination with skip in collection.find()

I am attempting to implement pagination using MongoDB Stitch in Swift for iOS, but I do not see skip in the docs. The RemoteFindOptions has sort and limit but no skip like so: { "projection": , "sort": , "limit":…
Koh
  • 2,687
  • 1
  • 22
  • 62
1
vote
1 answer

Need help sending correct payload to update State

I am using MongoDB-Stitch application to create a phonebook app. When I update a user the information gets saved correctly in the database but it won't show on the client until after I refresh the page. I believe the issue is in my reducer with the…
mwlai
  • 71
  • 1
  • 9
1
vote
1 answer

How to upload any type of file to an S3 bucket via client-side JavaScript?

I'm having trouble reading a file via FileReader and properly uploading it to S3 via PutObject without the file being corrupted. Description of problem I've been using MongoDB Stitch as my serverless platform with my app, and it comes built-in with…
Sergix
  • 54
  • 1
  • 8
1
vote
0 answers

How can I extract data from the MongoDB Stitch database without receiving "Promise pending"?

I would like to write an API for the MongoDB Stitch database that would be on Azure Functions. Therefore, I would like to get all records from all collections to be able to "throw them on the screen". I've tried in many ways but it still has the…
Astarc
  • 39
  • 1
  • 3
1
vote
1 answer

Getting the index of matched value

I've created online cluster in mongodb atlas then created mongodb stitch app, in the stitch javascript editor, how can I get the index of x when match it ? example : { "_id": 5646546, "items":[ {"x": 12, "y": 4} , {"x": 12, "y": 4} ] } so…
Manaf A.B
  • 27
  • 6
1
vote
0 answers

Owner_id field does not pass validation error. What is wrong with my schema?

I am looking into what is wrong with my schema. I'm attempting to insert an entry into my collection and I have gotten a slew of errors as I've changed things around but this seems to be the closest I have gotten to successfully inserting a…
UCProgrammer
  • 517
  • 7
  • 21
1
vote
0 answers

React get array from MongoDB Stitch into react-bootstrap-table-next

I have a simple React app connected to MongoDB Stitch (Atlas) up and running, and am able to fetch some dummy data anonymously. I can display the array of data as text: const { Stitch, RemoteMongoClient, AnonymousCredential } =…
1
vote
1 answer

How to await an auth object with hooks? (MongoDB Stitch in React Native)

I am using React Native to build an app that relies on MongoDB Stitch for authentication. More often than not, the app crashes because the client object has not yet loaded when I use it in the following line of code. The error I get is the infamous…
thePicker
  • 11
  • 2
1
vote
1 answer

MongoDB Error "MustAuthenticateFirst" with React App

I'm currently working on a small project thats supposed to teach me how to properly implement databases. It is supposed to be a small userlist with "currency" and items. Since I'm still a beginner I wasn't too confident in creating everything from…
Starai
  • 53
  • 6
1
vote
1 answer

Stitch Facebook authentication returns "AuthError"

Using the Stitch Facebook authentication provider with the Web/JS SDK the auth flow seems to work fine up until the redirect is done back to the Stitch servers. loginFB() { const credentialFB = new FacebookRedirectCredential(); …
1
vote
1 answer

Mongo chart behind nginx

I have docker container created from "quay.io/mongodb/charts:19.12.1" for mongodb chart. Here my container url is http://intenal.nosql.chart//, This url is accessible inside my docker network and it is working perfectly. Now I want to expose this…
divyang4481
  • 1,584
  • 16
  • 32