Correct fragment names

This commit is contained in:
Chi Vinh Le committed 2017-06-09 00:31:19 +07:00
1 parent 007b9604af
commit 995dd9fd60
1 file changed
+1 -2
+1 -2
View File
@@ -115,8 +115,7 @@ export function getResponseErrors(mutationResult) {
export function createDefaultResponseFragments(...names) {
const result = {};
names.forEach((name) => {
const response = `${name}Response`;
names.forEach((response) => {
result[response] = gql`
fragment Coral_${response} on ${response} {
errors {