MCPcopy
hub / github.com/dgraph-io/dgraph / DeleteUser

Method DeleteUser

dgraphapi/acl.go:86–99  ·  view source on GitHub ↗
(username string)

Source from the content-addressed store, hash-verified

84}
85
86func (hc *HTTPClient) DeleteUser(username string) error {
87 const query = `mutation deleteUser($name: String!) {
88 deleteUser(filter: {name: {eq: $name}}) {
89 msg
90 numUids
91 }
92 }`
93 params := GraphQLParams{
94 Query: query,
95 Variables: map[string]interface{}{"name": username},
96 }
97 _, err := hc.RunGraphqlQuery(params, true)
98 return err
99}
100
101func (hc *HTTPClient) CreateGroup(name string) (string, error) {
102 const query = `mutation addGroup($name: String!) {

Calls 1

RunGraphqlQueryMethod · 0.95