Skip to content

Commit d0d123c

Browse files
committed
code fix
1 parent 724bc7c commit d0d123c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/read/count.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
Mongo::Client.new(uri) do |client|
1111
# start-db-coll
12-
db = client.database
13-
collection = db['companies']
12+
database = client.use('sample_training')
13+
collection = database['companies']
1414
# end-db-coll
1515

1616
# Counts all documents in the collection

0 commit comments

Comments
 (0)