Replies: 1 comment 1 reply
-
OMG, I realized the answer while reading through the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running MongoDB in a container. I loaded the db with data from our staging env. I can see the data in the
mongosh
but when I connect via my Rails app the data is not visible (ie.User.count
returns 0). I created a user through the Rails console and it was added to the database. In fact I can find that user inmongosh
. I created a newMongo::Client
in my Rails console using the same options as theMonogoid::Clients.default
and that client will return all the users in the data including the new one I created. What is different about how Mongoid instantiates theMongo::Client
that is preventing me from accessing all the data in the collection? If I call count on the collection from the client this way it returns the right number.Beta Was this translation helpful? Give feedback.
All reactions