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.
To use the Items API, install the @wix/data package.
To install the package, follow the instructions below based on your development environment.
When developing with:
When developing CLI or self-hosted apps, as well as headless apps or sites, run the following command:
or
To import the package in your code: