JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q57256F
  • License ISC

Unofficial Wix Data API. Uses HTTP requests to connect.

Package Exports

  • uo-wix-data

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uo-wix-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

About

This is an unofficial NPM Package which includes some functions from the Wix Data API by Wix. The purpose of this package is to use Wix Data (database collections) in a different environment (site or Node.js app). It uses HTTP requests to connect to Wix.

Installation

npm install uo-wix-data --save

Check documentaiton for more steps.

Documentation

On your wix site create a backend file called http-functions.js and inside it put the code that is in uowd-http.js.

Example:

const wixData = require("uo-wix-data");
wixData.setup("username", "my-site", "foobar");

// Example
wixData.query("Users").eq("name", "John").find().then((result) => {
    console.log(result.items[0]);
});