Skip to main content
Version: 2.3.0

Api Reference

This section documents the complete Data Provider API. Keep in mind that Data Provider is not concerned about the views or about specific data origins. You'll also want to use UI bindings like @data-provider/react and origins like @data-provider/axios.

About origin addons, methods described here are common to all of them, but some can add its own methods and options, so please refer to its own documentation.

Top-Level Exports

Providers and selectors methods

Providers and selectors, once instantiated, have almost exactly the same methods:

Importing

Every function described above is a top-level export. You can import any of them like this:

ES6

import { Selector } from "@data-provider/core";

ES5 (CommonJS)

var Selector = require("@data-provider/core").Selector;

ES5 (UMD)

var Selector = dataProvider.Selector;