Skip to content

Commit e10fed3

Browse files
committed
tech review
1 parent bdbf28e commit e10fed3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/includes/indexes/index-code-examples.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
uri = "<connection string>"
55

66
# Sets the server_api field of the options object to Stable API version 1
7-
options = { server_api: { version: "1" }}
7+
options = { server_api: { version: '1' }}
88

99
# Creates a new client and connects to the server
1010
client = Mongo::Client.new(uri, options)
@@ -40,7 +40,7 @@
4040
mappings: {
4141
dynamic: false,
4242
fields: {
43-
<field name>: {type: '<field type>'}
43+
<field name>: { type: '<field type>' }
4444
}
4545
}
4646
}
@@ -71,7 +71,7 @@
7171

7272
# Text Index
7373
# start-text
74-
collection.indexes.create_one( { :<field name> => 'text' } )
74+
collection.indexes.create_one({ <field name>: 'text' })
7575
# end-text
7676

7777
# Create Many

0 commit comments

Comments
 (0)