Setup

@wix/data

Important: Starting from version 1.0.185, the data items API was significantly revised to closely match the functionality and syntax of the Velo wix-data API. If you are using an earlier version of this API, updating to the new version requires significant changes to your code. For previous versions, refer to the documentation for the deprecated API.

To use the Items 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:

  • Editor or Wix IDE: Use the package manager.
  • Local IDE: Use the Wix CLI. Run the following command:
    Copy
    or
    Copy

Wix apps and Headless

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

Copy

or

Copy

Import the package

To import the package in your code:

Copy
Did this help?