We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdbf28e commit e10fed3Copy full SHA for e10fed3
source/includes/indexes/index-code-examples.rb
@@ -4,7 +4,7 @@
4
uri = "<connection string>"
5
6
# Sets the server_api field of the options object to Stable API version 1
7
-options = { server_api: { version: "1" }}
+options = { server_api: { version: '1' }}
8
9
# Creates a new client and connects to the server
10
client = Mongo::Client.new(uri, options)
@@ -40,7 +40,7 @@
40
mappings: {
41
dynamic: false,
42
fields: {
43
- <field name>: {type: '<field type>'}
+ <field name>: { type: '<field type>' }
44
}
45
46
@@ -71,7 +71,7 @@
71
72
# Text Index
73
# start-text
74
-collection.indexes.create_one( { :<field name> => 'text' } )
+collection.indexes.create_one({ <field name>: 'text' })
75
# end-text
76
77
# Create Many
0 commit comments