in the worker code, should i refer to the name or to the value of the binding?
in the worker code, should i refer to the name or to the value of the binding?
binding to is what you access in your env, ex: https://developers.cloudflare.com/kv/concepts/kv-bindings/#access-kv-from-workers
addEventListener('fetch',... (migrate to module workers is recommended) then it's a global var
wishlist_kv, the namewishlist_kv.get(key) gives me Cannot find name 'wishlist_kv'.Property 'put' does not exist on type '"wishlist_kv"'
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
});

Game should not exist after 19:20



fetch() context and not at the root). But decided the fetch context (only the namespace_id needed + location within that context) might be more worth it than having to force the users to find their account_id , the namespace_id and the Bearer token . Would've preferred a lot more ofc if it was available at the root, but ALAS. Here is the Cloudflare KV-specific docs!addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
});
PutOptionsBuilder { this: Object { obj: JsValue(Object({})) }, put_function: Function { obj: Object { obj: JsValue(Function(put)) } }, name: JsValue("27c43d0052d59077f496"), value: JsValue("{"description":"test game, don't register","players":{},"guests":[],"comments":[]}"), expiration: Some(1729279200), expiration_ttl: None, metadata: None }bindingaddEventListener('fetch',...