Package Exports
- ra-data-parse
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 (ra-data-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ra-data-parse
A Parse data provider for react-admin.
Features
All Data Provider Actions are supported including Authentication
GET_LISTGET_ONECREATEUPDATEUPDATE_MANYDELETEDELETE_MANYGET_MANYGET_MANY_REFERENCE
Installation
# via npm
npm install ra-data-parse
# via yarn
yarn add ra-data-parseUsage
Import this package, set the parse configurations and pass it as the dataProvider to react-admin.
//in app.js
import React from "react";
import { Admin, Resource } from "react-admin";
import {ParseAuth, ParseClient} from 'ra-data-parse'
const parseConfig = {
URL: '',
JAVASCRIPT_KEY: '',
APP_ID: ''
}
const dataProvider = ParseClient(parseConfig);
const App = () => (
<Admin dataProvider={dataProvider}>
...
</Admin>
);
export default App;Authentication
This client allows you to set Authentication for login
// Pass it as the second parameter after the base URL.
const authProvider = ParseAuth(parseConfig);