Setup

@wix/data

To use the ExternalDatabaseConnections API, install the @wix/data package.

Install the package

To install the package, follow the instructions below based on your development environment.

Wix sites and Blocks apps

When developing with:

Copy
npm install @wix/data

or

Copy
yarn add @wix/data

Wix apps and Headless

When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:

Copy
npm install @wix/data

or

Copy
yarn add @wix/data

Import the package

To import the package in your code:

Copy
import { externalDatabaseConnections } from "@wix/data";
Did this help?