10000 Merge pull request #103 from GetStream/fix-examples · GetStream/stream-python@171b3e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 171b3e4

Browse files
authored
Merge pull request #103 from GetStream/fix-examples
Correct examples in collections
2 parents 8a85694 + 3fb826d commit 171b3e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stream/collections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def upsert(self, collection_name, data):
3030
:return: http response, 201 if successful along with data posted.
3131
3232
**Example**::
33-
client.collection.upsert('user', [{"id": '1', "name": "Juniper", "hobbies": ["Playing", "Sleeping", "Eating"]},
33+
client.collections.upsert('user', [{"id": '1', "name": "Juniper", "hobbies": ["Playing", "Sleeping", "Eating"]},
3434
{"id": '2', "name": "Ruby", "interests": ["Sunbeams", "Surprise Attacks"]}])
3535
"""
3636

@@ -56,8 +56,8 @@ def select(self, collection_name, ids):
5656
:return: meta data as json blob
5757
5858
**Example**::
59-
client.collection.select('user', 1)
60-
client.collection.select('user', [1,2,3])
59+
client.collections.select('user', 1)
60+
client.collections.select('user', [1,2,3])
6161
"""
6262

6363
if type(ids) != list:
@@ -87,7 +87,7 @@ def delete_many(self, collection_name, ids):
8787
8888
**Example**::
8989
client.collections.delete('user', '1')
90-
collections.delete('user', ['1','2','3'])
90+
client.collections.delete('user', ['1','2','3'])
9191
"""
9292

9393
if type(ids) != list:

0 commit comments

Comments
 (0)
0