Questions tagged [mongodb-cloud]

5 questions
2
votes
0 answers

MongoDB Realm GraphQL - returning multiple types as custom payload in a custom resolver

I am currently exploring MongoDB Realm, more specifically the GraphQL integration. I have successfully created resolvers which return a specific type, or an array of one type. However, I can't figure out how to return arrays of multiple types... I…
Pinkney
  • 134
  • 1
  • 6
2
votes
1 answer

How to avoid CORS issues when connecting to MongoDB Realm GraphQL endpoint with Axios?

I have a test database in MongoDB Atlas. Using the MongoDB Realm service, I've been able to set up a GraphQL endpoint for the database. I can run queries internally with their sandbox (GraphiQL). After configuring the API key auth…
Soviut
  • 88,194
  • 49
  • 192
  • 260
1
vote
1 answer

MongoDB Atlas/Cloud Update and Delete not working

I have a problem when I try to update or delete data from my MongoDB Atlas database. The thing is, it looks like the "updateOne" and "deleteOne" methods are being called but not in the right way. Whenever I try to retrieve the operation the result…
0
votes
1 answer

Using mongoose to write and retrieve data in nodejs backend

im newer about MongoDb and Node.Js. I should check if an Asset exists, and then (if not exist) create it. This is the Asset schema var Schema = mongoose.Schema; var AssetSchema = new Schema({ name: String, creationDate: { type: Date,…
MrBuffalo
  • 137
  • 1
  • 1
  • 9
0
votes
1 answer

AWS EC2 target group in public subnet to be registered as a list of static IPs for MongoDB Cloud ACL

We require MongoDB Cloud to be protected with a finite, if possible short, list of IPs. We have EC2 instances as web servers, each with public IPs, in a public subnet (so no need to be private), in 2 AZ of the same region. We also have an…
Fabien Haddadi
  • 1,814
  • 17
  • 22