Skip to content

Commit 9442780

Browse files
committed
Updating withSession to mention it will default
to `first-unconstrained`.
1 parent 4aba48a commit 9442780

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/docs/d1/worker-api/d1-database.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ const session = env.DB.withSession("<constraint> or bookmark");
261261
- <code>bookmark</code>: <Type text="String"/><MetaInfo text="Optional"/>
262262
- A [`bookmark`](/d1/reference/time-travel/#bookmarks) from an existing D1 Session. This allows you to continue the existing Session using the `bookmark` as a reference point.
263263

264+
- If no parameters are provided, `withSession` defaults to using the `first-unconstrained` parameter.
265+
264266
#### Return values
265267

266268
- <code>D1DatabaseSession</code>: <Type text="Object"/>

0 commit comments

Comments
 (0)