getMiniflareDurableObjectIds(class: string)
helper function
#384
Labels
enhancement
New feature or request
Milestone
getMiniflareDurableObjectIds(class: string)
helper function
#384
Durable Object IDs have no runtime binding to be listed, however the Cloudflare API has an endpoint to retrieve all created Durable Objects, with the additional information whether there is storage attached.
A helper function like
getMiniflareDurableObjectIds(class: string)
could return an array like the API, probably without the pagination, or the limits.This could be useful in tests to verify if in certain cases no DO is created, or that no storage is used.
A possible extension could be to also provide a
_stored
key which shows how many bytes the Durable Object is using.The text was updated successfully, but these errors were encountered: