Chinoman10
CDCloudflare Developers
•Created by yevgen on 10/21/2024 in #vectorize
there is no support for contains. We are
Thanks for getting back to me 🙏
I've gone ahead and picked the filter which I believe would filter out most of the results and I run a 2nd query with that filter on...
I'll write some comments in the code that specify how we should change it whenever the
$nin
operator becomes available.
(actually, in theory, we should be able to have both codes live... we simply check if the operator exists, if it does, great, it 'auto-upgrades', and if not (until it happens) it uses the legacy system).4 replies
CDCloudflare Developers
•Created by yevgen on 10/21/2024 in #vectorize
there is no support for contains. We are
Hello yevgen, it's great news that this is coming.
How could I achieve a similar result today for 'not in a specified array'?
or
or
Because the 2nd isn't valid JSON (object with non-unique keys), but the docs don't have an example with an array (so I dunno if it's possible).
And the 3rd one seems like what you guys are building, but probably isn't supported with the '$ne' operator. Edit: I've confirmed with the
worker.types
, indeed the filters don't support string[]
😭4 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
Oh since I never heard of it I just kinda ignored it 😅🙏
31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
So I'm guessing you didn't know that
pages dev
did the bindings for you?
How were you accessing the DO from within the Pages then?31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
You can see I'm getting the OAUTH_KV from env, which comes from the request.
31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
As long as they are declared in the wrangler.toml, yup!
31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
Well the binding is done with wrangler, which I've posted.
Then whenever there's a GET/POST request, the ctx is provided which has the request, the env, the waitUntil util function, etc.
The env has the bindings.
31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
Sure, I'll try that tomorrow morning 👍
31 replies
CDCloudflare Developers
•Created by Chinoman10 on 7/27/2024 in #durable-objects
I have the weirdest situation going
I'm not sure I follow? What's the issue with using D1 or KV without a framework?
All the code is in the 'functions' folder, which is kinda like a Worker, so 🤷♂️
Everything works fine. KV's are a bit wonky on localhost, but D1's work magnificently well. Makes me love DB's when I previously hated their guts (got PTSD from prev. jobs).
31 replies