kwhitley / itty-durable

Cloudflare Durable Objects + Itty Router = shorter code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get object id method in createDurable interface

maurerbot opened this issue · comments

commented

Why

Having a default method or property on the DO proxy to reflect the DO object id is useful

What

Expose the object id in a property or method. Example

myDo.$.id

or

myDo.getId()