vaphes / pocketbase

PocketBase client SDK for python
https://pypi.org/project/pocketbase/
MIT License
359 stars 41 forks source link

how to Add record to collection #30

Closed bobwatcherx closed 1 year ago

bobwatcherx commented 1 year ago

i want to add data to collection my code record = client.collection('fletSample').create(name="bout",age=120)

BUT ERROR File "/home/minx/belajar/colongan/pythonsidik/test.py", line 7, in record = client.collection('fletSample').create(name="bout",age=120) TypeError: CrudService.create() got an unexpected keyword argument 'name'

wahst solutions

paulocoutinhox commented 1 year ago

You can read the readme or tests:

result = client.collection("fletSample").create({
        "name": "bout",
        "age": 120
})