From 290254c2ba2e24b5fa730d9d52478924a3f7447e Mon Sep 17 00:00:00 2001 From: Nop Assistant Date: Mon, 12 Aug 2024 12:51:09 +0000 Subject: [PATCH] chore: deploy docs of project Nop Entropy via GitHub Actions --- projects/nop-entropy/docs/dev-guide/xlang/xmeta/index.html | 2 +- .../docs/tutorial/simple/4-complex-query/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/nop-entropy/docs/dev-guide/xlang/xmeta/index.html b/projects/nop-entropy/docs/dev-guide/xlang/xmeta/index.html index f6056ba..5e2e1f7 100644 --- a/projects/nop-entropy/docs/dev-guide/xlang/xmeta/index.html +++ b/projects/nop-entropy/docs/dev-guide/xlang/xmeta/index.html @@ -1382,7 +1382,7 @@

ui:filterOp实际对应前端生成的控件的name格式为 filter_{name}__{filterOp},例如filter_userStatus__in

对象元数据

xmeta文件定义了后台服务对象的元数据,描述了对象具有哪些属性,以及这些属性是否可以修改,是否可以查询等信息。
NopGraphQL引擎返回的对象信息完全由XMeta来定义。如果一个属性在XMeta中没有定义,则即使实体上具有这个字段,前台GraphQL和REST请求也无法访问到该字段。

定义关联属性

实体模型中的关联对象生成到XMeta模型中体现为如下配置

-
<props>
<prop name="parent">
<schema bizObjName="NopAuthDepartment" />
</prop>

<prop name="children">
<schema>
<item bizObjName="NopAuthDepartment" />
</schema>
</prop>
</props>
+
<props>
<prop name="parent">
<schema bizObjName="NopAuthDepartment" />
</prop>

<prop name="children">
<schema>
<item bizObjName="NopAuthDepartment" />
</schema>
</prop>
</props>