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
Hi! Thanks for the awesome library - I much prefer it to the more popular one tbh!
getFirstListItem has typings that makes the first arg ("filter") of type Filter, but the actual method takes in a string and passes it directly to the parent service as the string. This results in an error from pocketbase where the query is incomplete/malformed (400 error).
Hey, glad you enjoy it and sorry for my late reply!
Good catch, this should only happen when you pass in a filter like ['date', '>=', '2023-01-01'] as the filter methods always return a string. Feel free to create a PR :)
Hi! Thanks for the awesome library - I much prefer it to the more popular one tbh!
getFirstListItem has typings that makes the first arg ("filter") of type Filter, but the actual method takes in a string and passes it directly to the parent service as the string. This results in an error from pocketbase where the query is incomplete/malformed (400 error).
Edit: forgot to paste reference:
typed-pocketbase/src/client.ts
Lines 231 to 236 in 9285469
I assume the solution is to:
Happy to open a pull request if that sounds good to you! Thanks again!
The text was updated successfully, but these errors were encountered: