Skip to content

Commit

Permalink
docs: synced via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nop-cao committed Jan 14, 2025
1 parent 610dc4f commit 15d267c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/dev-guide/graphql/graphql-audit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 服务调用审计

可以在ORM层面通过IOrmInterceptor来跟踪实体修改历史。

如果希望在GraphQL层面记录类似的调用日志,则可以仿照DefaultGraphQLAuditer的实现,注册一个id为nopGraphQLAuditer的bean,实现IGraphQLAuditer接口即可。

6 changes: 3 additions & 3 deletions src/ref/merged-app.beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@
</bean>

<!--LOC:[12:14:0:0]/nop/biz/beans/biz-defaults.beans.xml-->
<bean class="io.nop.graphql.core.engine.DefaultOperationFunctionInvoker" ioc:aop="false"
id="$GEN$io.nop.graphql.core.engine.DefaultOperationFunctionInvoker$2">
<bean class="io.nop.graphql.core.engine.GraphQLTransactionOperationInvoker" ioc:aop="false"
id="$GEN$io.nop.graphql.core.engine.GraphQLTransactionOperationInvoker$2">
<property name="transactionalInvoker" ext:autowired="true">
<ref bean="nopTransactionalFunctionInvoker"
ext:resolved-loc="[61:6:0:0]/nop/orm/beans/orm-defaults.beans.xml"/>
Expand Down Expand Up @@ -552,7 +552,7 @@
ext:resolved-loc="[59:6:0:0]/nop/orm/beans/orm-defaults.beans.xml"/>
</property>
<property name="operationInvoker">
<ref bean="$GEN$io.nop.graphql.core.engine.DefaultOperationFunctionInvoker$2"
<ref bean="$GEN$io.nop.graphql.core.engine.GraphQLTransactionOperationInvoker$2"
ext:resolved-loc="[12:14:0:0]/nop/biz/beans/biz-defaults.beans.xml"/>
</property>
<property name="schemaLoader" ext:autowired="true">
Expand Down

0 comments on commit 15d267c

Please sign in to comment.