MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / DeleteGroup

Method DeleteGroup

dgraphapi/acl.go:169–184  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

167}
168
169func (hc *HTTPClient) DeleteGroup(name string) error {
170 const query = `mutation deleteGroup($name: String!) {
171 deleteGroup(filter: {name: {eq: $name}}) {
172 msg
173 numUids
174 }
175 }`
176 params := GraphQLParams{
177 Query: query,
178 Variables: map[string]interface{}{
179 "name": name,
180 },
181 }
182 _, err := hc.RunGraphqlQuery(params, true)
183 return err
184}
185
186func (hc *HTTPClient) AddRulesToGroup(group string, rules []AclRule, newGroup bool) error {
187 const query = `mutation updateGroup($name: String!, $rules: [RuleRef!]!) {

Calls 1

RunGraphqlQueryMethod · 0.95