Skip to content

Commit 7a5f606

Browse files
Aditi Singhabhif22
authored andcommitted
set default response for mutation fixed
1 parent 527dd2f commit 7a5f606

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

graphql.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ func SetFixedResponse(m map[string]interface{}) {
156156
if v, ok := t.(map[string]interface{}); ok {
157157
query.FixedResponseQuery = v
158158
}
159-
} else if t, ok := m["mutation"]; ok {
159+
}
160+
if t, ok := m["mutation"]; ok {
160161
if v, ok := t.(map[string]interface{}); ok {
161162
query.FixedResponseMutation = v
162163
}

0 commit comments

Comments
 (0)