Hi team, I currently get this error `D1_ERROR: To execute a transaction, please use the state.storag

Hi team, I currently get this error
D1_ERROR: To execute a transaction, please use the state.storage.transaction() or state.storage.transactionSync() APIs ...
and after some research, I am a bit confused about the current state of D1 vs durable objects.

In order to use transactions via state.storage.transaction(), do I need to stop using D1 and switch over to DO? Or does state.storage.transaction() somehow work for existing D1 databases as well?
Was this page helpful?