pocketbase / js-sdk

PocketBase JavaScript SDK
https://www.npmjs.com/package/pocketbase
MIT License
2.17k stars 127 forks source link

getOne with empty string returns result #271

Closed Laecherlich closed 10 months ago

Laecherlich commented 10 months ago

Hey, I noticed that calling collection('...').getOne('') returns all data of the table in pages the same as getFullList. Its not a big problem for me, I will just add a check before but I wanted to let you know :).

ganigeorgiev commented 10 months ago

It will fallback to getList() but I agree that is not expected behavior.

Should be fixed in v0.20.2.

The Dart SDK will also be updated sometime later today.