JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q36005F
  • License MIT

Package Exports

  • ra-data-leancloud

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-leancloud) 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-leancloud

Features

  • 支持内嵌查询

Usage

import dataProvider from "ra-data-leancloud"
import AV from "leancloud-storage"

AV.init({
  appId: "appId",
  appKey: "appKey"
})
dataProvider.init({ AV })

export default () => <Admin dataProvider={dataProvider} />

内嵌查询:

// SomeList.js

<List filter={{ "todo.folder": targetFolder }} />

Tips:

  • 内嵌查询有一定限制,详情查看 LeanCloud 官方说明
  • 内嵌查询要求字段名称和 class 的名称一致,只是首字母变为小写。如 todo 字段指向 Todo class 中的数据。
  • 内嵌查询可以有多个层级,如 a.b.c.d.e