Looking through the code, I see an example for finding a server that has been added to a specific group:
session.group :db do
session.use 'dbmain', 'user', :properties => { :primary => true }
end
primary = session.servers_for(:db => { :only => { :primary => true } })
But what if that server was never added to a group? Something like this:
session.use 'server', 'user', :properties => { :something => 'unique' }
server = session.servers_for({ :only => { :something => 'unique' } })
If there is no way to do this, is this a feature that we can add?