Hey @pawan,
I got the same issue, I’m using Slash GraphQL too and these kind of mutations are failing with the same error message
Internal Server Error - a panic was trapped. This indicates a bug in the GraphQL server. A stack trace was logged. Please let us know by filing an issue with the stack trace.
My mutations are:
mutation MyMutation {
updateSubject(input: {filter: {id: "0x4"}, set: {topics: {name: "Respiration"}}}) {
subject {
name
topics {
name
}
}
}
}
or this one
mutation MyMutation {
updateSubject(input: {filter: {id: "0x4"}, set: {name: "Biology KS3"}}) {
subject {
name
topics {
name
}
}
}
}
And part of the schema is:
type Subject {
id: ID!
name: String!
topics: [Topic]! @hasInverse(field: subject)
}
type Topic {
id: ID!
name: String!
subTopics: [SubTopic]! @hasInverse(field: topic)
subject: Subject!
}
Thank you very much