2.0.1 • Published 7 months ago
socar-datalayer v2.0.1
socar-dataLayer
介绍
数据层
发布日志
2.0.1
增加cpx操作符处理
/**
* 示例输入:
* filter = {
* "[SOCAR_FILTER_KEY]": {
* "age": { "op": "eq", "value": 18 },
* "name": { "op": "ct", "value": ["John", "Doe"] },
* "labels":{"宝马":{op:'eq',value:'1'},'奔驰':{op:'eq',value:'2'}}
* }
* };
*/
2.0.0
破坏性更新,拦截器接口数据返回格式变更
1.0.11
支持 或 过滤 socar_or_filter 关键字
1.0.10
支持 orbit source post 时,通过传递的jsonapi meta 数据指定 自定义 id
const jsonapi = {
meta: {
// __customId__ 必须为 string 类型
__customId__: 'customId'
},
data: {
type: 'type',
attributes: {
attr: ''
},
relationships: {
rel: {
data: [ /** ... */ ]
}
}
}
}