Why Use MongoDB with Ruby

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • mongo-ruby-driver

    The Official MongoDB Ruby Driver

  • The MongoDB Ruby Driver is hosted at RubyGems, or if you'd like to explore the source code it can be found on GitHub.

  • rubygems

    Library packaging and distribution for Ruby.

  • require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'mongoid' end Mongoid.configure do |config| config.clients.default = { uri: "mongodb+srv://username:[email protected]/test" } end class Foo include Mongoid::Document field :bar, type: String field :counter, type: Integer, default: 1 end # create a new instance of 'Foo', which will assign a default value of 1 to the 'counter' field foo = Foo.create bar: "baz" puts foo.inspect # => # interact with the instance variable 'foo' and modify fields programmatically foo.counter += 1 # save the instance of the model, persisting changes back to MongoDB foo.save! puts foo.inspect # =>

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts