Filtering issues, Syntax? #4882
Replies: 1 comment 6 replies
-
Remove the first wrapping quotes, aka. it must be: // or filter: pb.filter("features={:id}", { id: filters })
filter: `features="${filters}"` edit: I forgot to mention that you can get an empty list response if your client request doesn't satisfy the List API rule of the collection (see the notes in API rules). |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am struggling implementing filters. I think it's syntax related but cannot figure it out because I also think I am doing it right but I am not. Bad combination.
Maybe your eyes can see it?
Anyway, I have:
pb.collection('entries').getFullList({expand: 'features'});
My app holds
entries
and has a relation tofeatures
because the entries have features. It is a to-many relation.What I want to do, is pass in the
features
id string into theentries
query and filter by it. Any syntax I tried gave me either and empty list or a 400 return.Pocketbase returns this:
I just don't see it. I am sure it's a very dumb mistake
Beta Was this translation helpful? Give feedback.
All reactions