Replies: 2 comments 3 replies
-
From the docs, AND & OR queries for keys are not supported. Instead, you could get each key individually, and add them to a list if an item was found. |
Beta Was this translation helpful? Give feedback.
-
if you meant |
Beta Was this translation helpful? Give feedback.
-
Hi,
How can I fetch based on multiple parameters of the same key? Similar to an
$in
query. I tried the follow:Deta.Base("foo").fetch({key:['bar','baz']})
Deta.Base("foo").fetch({"key?in":['bar','baz']})
Deta.Base("foo").fetch([{key:'bar'}, {key:'baz'}] )
So the above should return any items which match any of the
key
valuesFollowing your docs, I tried both of those. They both error wit error:
unhandledRejection: Error: Bad query
.PS- Deta looks incredible and simple. Docs and UI are all fantastic too- well done.
Beta Was this translation helpful? Give feedback.
All reactions