I am trying to get full text search with Atlas to work in my Rails app. I have set up the index following this tutorial in their docs. When I test the ...
I am trying to get full text search with Atlas to work in my Rails app. I have set up the index following this tutorial in their docs. When I test the ...
I'm new to Ruby on Rails.I've been trying generate mongoid.yml file to connect with mongodb. but im getting this error: This is my Gemfile I tri ...
I am currently using Ruby on Rails 7, PostgreSQL, MongoDB and GraphQL to develop a web application. However, when I was trying to debug the Ruby code, ...
I'm upgrading a rails app thats using MongoDB starting at Rails 4.2 and MongoDB 3.4 Ruby version is 2.7.6 MongoDB is 3.7 Rails 5.2 I've updated the ...
I have a collection with a column named id. When I tried to do a where query to filter by that column name, it returns no match because mongoid is ali ...
I am starting an blog with mongoid and I would like to use trix editor along with all facilities of action_text. Is it possible? ...
I getting an error using rails 6 ( Ruby 3.1.2) with mongoid. without the eager_load this will causes me a huge timeout and it affect the loading time ...
How to run db.runCommand in newer versions of mongoid. Example: MyModel.collection.database.command(eval: "db.runCommand ( { compact: 'sessions' } )" ...
Mongoid won't save document with no reference to embeds_many field, and I can't find any mention in documentation on how to make embeds_many default t ...
Lets Say I have User and a Team model. Now when i do User.last.update(team: Team.last), it stores user_id: foreign key in team document. Prety comm ...
I have a controller method where I'm trying to pass a string with multiple order_by arguments to return a sorted collection. The order_by syntax work ...
I am in the process of upgrading from rails 5.2 to 6.0. In that process, I also had to upgrade mongoid 6.0 to 7.0 Right after that, my rake scripts f ...
I was going over mongoid documentation https://mongoid.github.io/old/en/mongoid/docs/querying.html and it is not clear to me what is difference betwe ...
I'm Using Mongoid and I have two models: How can I do get all records from Ticket for any users? When I use Ticket.all, I get nil. ...
This perplexes me. A Mongoid::Criteria is not frozen, but if I assign it to a variable in console, it tells me FrozenError (can't modify frozen String ...
I have a mongoid model in my rails application as follows class Groups::Post include Mongoid::Document include Mongoid::Attributes::Dynamic inc ...
I have been facing this error when I try to call my api using GET /lecture_events/1. The error is and this is my lecture_events controller code ...
The Mongoid models for Android and Itunes app have two fields representing the id, namely app_id and id and I'd like to know the difference between th ...
I have a rails mongoid model with a string field end_date as follows class Project include Mongoid::Document include Mongoid::Attributes::Dynamic ...
I'm trying to upgrade Mongoid in an Rails 4.2 app from 4.x to 5.x (5.4.1) to connect to a MongoDB 2.6. I've updated the mongoid.yml file to match the ...