Multi-tenancy: creating namespaces and adding users to namespaces

Hey @Tong, thanks for reaching out.
2.

mutation {
 addNamespace(input:{password:"mypass"})
  {
    namespaceId
    message
  }
}

By sending the above mutation, a namespace is created. For that namespace, guardian group is created automatically. Also, a user “groot” with password “mypass” (default is “password”) is created in the guardian group. Now, we can use these credentials to login into the namespace and perform operations like addUser etc.
cc: @damian can we please add this to the docs as well.

  1. The dgraph clients are for DQL, for GraphQL we already have lots of libraries Dgraph Client support for GraphQL backend