当前位置:主页
> 资源下载 > 5 > promise-wrapper-for-relay-modern-mutation-commit: 用于Relay Modern提交突变的Promise包装器
-
promise-wrapper-for-relay-modern-mutation-commit: 用于Relay Modern提交突变的Promise包装器
资源介绍
中继提交变异承诺
Prompise包装器用于Relay Modern的提交突变
安装
npm install relay-commit-mutation-promise
在Relay Modern中使用
const commitMutation = require ( 'relay-commit-mutation-promise' ) ;
const { graphql } = require ( 'react-relay' ) ;
const mutation = graphql `
mutation MarkReadNotificationMutation(
$input: MarkReadNotificationData!
) {
markReadNotification(data: $input) {
notification {