diff --git a/backend/plugins/github/api/connection_api.go b/backend/plugins/github/api/connection_api.go index 570125d2991..a5f0e922ded 100644 --- a/backend/plugins/github/api/connection_api.go +++ b/backend/plugins/github/api/connection_api.go @@ -92,6 +92,9 @@ func TestConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, // @Failure 500 {string} errcode.Error "Internal Error" // @Router /plugins/github/connections [POST] func PostConnections(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { + if _, ok := input.Body["enableGraphql"]; !ok { + input.Body["enableGraphql"] = true + } return dsHelper.ConnApi.Post(input) }