The official WeivData APIs for Node.js to build web applications using MongoDB with Wix. Designed for easy switch from wix-data APIs by providing same or similar syntax for most functions, example switch;
Using Wix SDK APIs:
import { items } from "@wix/data";
items.get("collectionId", "itemId");
// https://dev.wix.com/docs/sdk/backend-modules/data/items/getUsing Velo APIs:
import wixData from "wix-data";
wixData.get("collectionId", "itemId");
// https://dev.wix.com/docs/velo/apis/wix-data/getUsing WeivData APIs:
import weivData from "@exweiv/weiv-data";
weivData.get("collectionId", "itemId");
// https://weiv-data.apps.exweiv.com/functions/get.htmlMost of the time you will do very little changes or just a keyword change, this is how we built this library to provide easier and faster codebase change for larger projects.
You can use this library whenever you want it's all up to you. But we recommend to use this library when you are building something large/complex and when you expect a lot of traffic. Or you want faster results from your database operations. There are more scenarios when you can use this library if you want to learn more take a look to our docs.
You can also use native mongodb collection cursor with this library. Learn more about
.nativefunction in docs.
You can find more info at our API Reference.