Skip to content

Support d1 create db-with-jurisdiction #2698

@RodrigoHamuy

Description

@RodrigoHamuy

Confirm this is a Typescript library issue and not an underlying Cloudflare API issue

  • This is an issue with the Typescript library

Describe the bug

I can't set the D1 jurisdiction using this library.

https://developers.cloudflare.com/d1/configuration/data-location/#use-wrangler

To Reproduce

Check the code snippet.

Code snippets

const client = new Cloudflare({ apiToken });
const db = await client.d1.database.create({
  account_id,
  name,
  primary_location_hint,
  jurisdiction, // << not part of the TS interface
});

OS

any

Runtime version

any

Library version

5.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions