Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:11

    nbbeeken on mster

    (compare)

  • 19:11

    nbbeeken on mster

    (compare)

  • 19:11

    nbbeeken on mster

    (compare)

  • 17:12
    addaleax commented #2698
  • 17:12
    addaleax commented #2698
  • 17:12
    addaleax commented #2698
  • 17:00
    durran synchronize #2702
  • 17:00
    durran synchronize #2702
  • 17:00
    durran synchronize #2702
  • 17:00

    durran on gridfs-write-streams

    fix: Allow GridFS write stream … (compare)

  • 17:00

    durran on gridfs-write-streams

    fix: Allow GridFS write stream … (compare)

  • 17:00

    durran on gridfs-write-streams

    fix: Allow GridFS write stream … (compare)

  • 16:56
    durran synchronize #2703
  • 16:56
    durran synchronize #2703
  • 16:56
    durran synchronize #2703
  • 16:56

    durran on gridfs-write-streams-master

    test: Test to ensure GridFSWrit… (compare)

  • 16:56

    durran on gridfs-write-streams-master

    test: Test to ensure GridFSWrit… (compare)

  • 16:56

    durran on gridfs-write-streams-master

    test: Test to ensure GridFSWrit… (compare)

  • 16:55

    durran on add-tests-master

    (compare)

  • 16:55

    durran on add-tests-master

    (compare)

Joris W
@jorisw
Hi. How do I catch the database failing from a collection stream cursor?
Looks like I can shut down my database, and the stream cursor doesn't complain at all
Joakim
@Sefriol
Hey, is there any guidance on how to configure mongodb with replicasets on travisci? I'm trying to create tests using transactions.
Neil James Monzales
@godmode97
Hi! How can you remove a referenced object in a Schema?
Joakim
@Sefriol

Hey, is there any guidance on how to configure mongodb with replicasets on travisci? I'm trying to create tests using transactions.

The only reference I have found so far, but I'm not too big of a fan of sleep methods: https://georgeshank.com/how-to-enable-a-mongodb-replica-set-on-travis/

Fabricio
@ofabricio
{
    'key': 'ONE',
    'stages': [
        { name: 'prod', values: [ { 'value': 'one' } ] },
        { name: 'qa',   values: [ { 'value': 'two' } ] }
    ]
}
I need to do an update in that document, I'd like to either add a new stage if it doesnt exist or add to stage values if it already exists. Is this possible in a single mongo request? Or do you think i should rework my design?
ishu mishra
@coderishu
hello folks
i am beginner in backend
i am working on spring/java
Screenshot (4).png
mongodb
error
i thought to be an error related to mongodb credentials so i changed that too
but still showing same error
raphyav
@raphyav
How can I insert documents in collection if it not exist there else update it with the new values in Mongo DB. I am using node.js drivers for coding.
Erick Vicentin
@erickvicentin
Hi people!
Damien Doumer
@DamienDoumer
Hello, please a simple question: Should indexes be registered once only in a database's lifetime? What I'm currently doing is running the code to register the index at every initialization of the service which needs this. but is this the best approach or not ?
Manav Misra
@manavm1990_gitlab
Noob, so NS. WIKI that you will get ✉️s from the service advising about things that should be indexed based on what actually happening.
Ahmetcan Aksu
@ahmtcn123

Guys I searched all the stack I tried every examples but I couldnt update object inside of array

Here is the db

    mail: string
    password: string,
    db: {
        dialogEngine: {
            assistants: [
                [
                    apiKey: string,
                    maintenance: boolean
                ]
            ]
        }
    }

I want to update maintenance boolean here is the code I tried

    var update = await global.dialogEngine.db.db('users').collection('userdatabase').updateOne({
        mail: req.body.mail,
        password: req.body.password
    },
    {
        $set: {
            'db.dialogEngine.assistants.$[elem].maintenance':  req.body.maintenance
        }
    },
    {
        arrayFilters: [
            {
                'elem.apiKey': req.body.apiKey
            }
        ]
    });
syed
@Smssyed8
erverMs\server.js:28:40)
at Module._compile (internal/modules/cjs/loader.js:1144:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
at Module.load (internal/modules/cjs/loader.js:993:32)
at Function.Module._load (internal/modules/cjs/loader.js:892:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
do i need npm install or any other command to put my export in node modules
Yogesh Manjhi
@yogeshmanjhii_twitter
Hi guys,
Need some help with export and import of mongodb collection data via nodejs
here is the question i want to discuss
i am new to mongo so any help or idea is greatly appreciated
cooly
@cooly-me
Hi
yondering
@yonderbread
Hi all, I have an already existing database with 3 collections with documents in them
I need to retrieve the values by a specific key
Not a query
Ario K
@itsario_twitter
anyone know the performance affects of the $polygon query on 300+ element polygon: https://docs.mongodb.com/manual/reference/operator/query/polygon/
that can be done quite often
The '2d' index is applied obviously
javadevelopment4
@javadevelopment4
This may be useful for anyone - Turn your pc to lightening speed in 7 steps - https://www.youtube.com/watch?v=n0odMfF2yWQ&feature=youtu.be
Mohammad Fayaz
@fayaz07

is there any technique like, if I have two collections

posts:
 - userId
 - other fields...
users:
- userId
- name
...

like, if I just make a find of posts that also fetches the name of the user

Note: without lookup or join

Nitendra Singh Yadav
@nitendra-yadav

hello guys, I am new here, just stuck in a query on orders array of shopify

I want to manipulate orders to get info like this,

{
  topVariant: [
  {
    variant_id: '',
    variant_title: '',
    product_title: '',
    refundAmount: ''
  }
],
  topProducts: [
  {
    product_name: '',
    productSaleAmount: '',
    variantsSold: '',
    product_id: ''
   }
  ],
  grandTotals: {
     totalRefunds: '',
     totalItemsSold: '',
     totalRevenue: ''
   }
}

orders data in the format as below

Nitendra Singh Yadav
@nitendra-yadav

https://shopify.dev/docs/admin-api/rest/reference/orders/order#index-2020-07

sorry, orders object is very lengthy so I was unable to send here, you can see on this link, under all order api-> show response

Azar
@azartheen
Error: Cannot find module 'mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/objectid
why these kinds of error happen in node js
TudorIoanMarin
@TudorIoanMarin

Hello guys. I was wondering, what is the approach to querying a collection with a dynamic field.
Let's say we have collection A { type, name, price } and a map of values B that holds the average price of a type of A, and can acces the value like so: B[A.type].avg.

What I want to do is create a dynamic query that will basically return the cheapest documents of a type but I can't figure out if this is doable in one query.

A.find({ price: { $lte: { B[A.type].avg } } })

I imagine there is an aggregate method fot this, can someone point me in the right dirrection?

Thanks

Nitendra Singh Yadav
@nitendra-yadav
can anybody help me in filling missing dates in array of orders with some default or null values
pedrospecter
@pedrospecter
Hej everybody
1 reply
quick question. Is it possible to have automated robots inside mongo so that they update some fields automatically?
Philip Lysenko
@philly-vanilly
What a useless chatroom. I scrolled 20 posts up, all were questions, no answers
Alan Levi
@Al2zone
noob question: have you ever seen this error? I'm having trouble connecting to a new db I created. "MongoParseError: Invalid source admin for mechanism MONGODB-X509 specified." I'm using the mongodb nodejs library to connect.
robin
@RobinYang11
image.png
image.png
robin
@RobinYang11
knick all your pp
pejman
@pejman-74
[http://mongodb.github.io/node-mongodb-native/3.1/api/ChangeStream.html ] according to this document next function must return null if no exist anymore document but for me not working .