I ended up using `env DO CLASS get key `
I ended up using
env.DO_CLASS.get(key)
, is that okay or should I use proxyDurable?6 Replies
that is just the raw DO, you need the proxy to get the itty wrapper
import { proxyDurable } from 'itty-durable'
it seemed to work though. maybe it is already wrapped before I used withDurables()?
Yes, I missed that bit
ah okay, thanks for helping 😄
The proxyDurable is for when you want to access a DO in a non fetch (i.e. cron, queue, alarm)
ahh yes that makes sense and is good to know as I will be needing that soon. thanks!