MongoDB find_by raises error

when using Record.find_by(...) with rails it raises Mongoid::Errors::DocumentNotFound

where as with postgres using Record.find_by(...) would just return nil, this means that additional error handling has to be used when using Mongo

Last Updated: 05/09/2023

Published: 05/09/2023