Skip to content

Commit e306d9f

Browse files
committed
Update examples
1 parent 4e1f36c commit e306d9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/collections_and_documents.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@
235235
# @typesense.collections['companies'].documents.import(documents_in_jsonl_format)
236236

237237
## You can bulk upsert documents, by adding an upsert mode option to #import
238-
@typesense.collections['companies'].documents.import(documents, mode: :upsert)
238+
ap @typesense.collections['companies'].documents.import(documents, mode: :upsert)
239239

240240
## You can bulk upsert documents, by adding an update mode option to #import
241241
# `mode: update` will throw an error if the document doesn't already exist
242-
@typesense.collections['companies'].documents.import(documents, mode: :update)
242+
ap @typesense.collections['companies'].documents.import(documents, mode: :update)
243243

244244
##
245245
# Export all documents in a collection in JSON Lines format

0 commit comments

Comments
 (0)