【发布时间】:2019-02-07 12:32:44
【问题描述】:
我想使用 NodeJS 在 GraphQL Mutation 中传递一个动态大小的 [{questionId1,value1},{questionId2,value2},{questionId3,value3}] 对象数组
.........
args: {
input: {
type: new GraphQLNonNull(new GraphQLInputObjectType({
name: 'AssessmentStep3Input',
fields: {
questionId:{
name:'Question ID',
type: new GraphQLNonNull(GraphQLID)
},
value:{
name:'Question Value',
type: new GraphQLNonNull(GraphQLBoolean)
}
}
}))
}
},
.........
如何使用给定的代码示例来做到这一点?
谢谢
【问题讨论】:
标签: node.js graphql graphql-mutation