@MutationMapping
public TalkCommentVo insertTalkComment(@Argument TalkCommentVo talkCommentParam){
return talkCommentService.insertTalk(talkCommentParam);
}
type TalkComment {
id: Int
talkId: Int!
writerId: Int!
precedingId: Int!
contents: String!
}
input TalkCommentParam{
talkId: Int
writerId: Int
precedingId: Int
contents: String
}
extend type Mutation {
insertTalkComment(talkCommentParam: TalkCommentParam!): TalkComment
}
만약 위같은 Resolver와 mutation query가 있다고 생각하자.
@MutationMapping
public TalkCommentVo insertTalkComment(@Argument TalkCommentVo talkCommentParam){
return talkCommentService.insertTalk(talkCommentParam);
}
결론적으로....