You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -525,6 +525,75 @@ Sample response:
525
525
}
526
526
```
527
527
528
+
### Get With Options
529
+
530
+
To retrieve data using Skyflow IDs or unique column values, use the `get(records: dict,options: GetOptions)` method. The `records` parameter takes a Dictionary that contains either an array of Skyflow IDs.
531
+
532
+
```python
533
+
# options, indicates whether to return all fields in tokenized format. Defaults to 'false'.
534
+
options: GetOptions
535
+
```
536
+
537
+
```python
538
+
{
539
+
'records': [
540
+
{
541
+
'ids': [str], # List of Skyflow IDs.
542
+
'table': str, # Name of table holding the data.
543
+
}
544
+
]
545
+
}
546
+
547
+
```
548
+
Sample usage
549
+
550
+
The following snippet shows how to use the `get()` method.
For retrieving using SkyflowID's, use the get_by_id(records: dict) method. The records parameter takes a Dictionary that contains records to be fetched as shown below:
0 commit comments