Connect to namespace via dgo

Hi. I testing namespace feature in dgraph. I created more namespace but can not to connect to them. I read the old post and see add metadata tag: namespace to connect but failed for me

ctx = metadata.AppendToOutgoingContext(ctx, “namespace”, “1”)
resp, err := client.RunDQL(ctx, query)

Can anyone instruct me please? I am using without ACL feature. Is namespace enterprise feature?

Right, I just confirmed that earlier suggestion was just plain wrong. The CreateNamespace gRPC call has the same functionality as the addNamespace admin call (via the GraphQL admin endpoint).

You do have to enable ACL, and you’ll have to create users in the created namespaces and log into those namespaces to effect mutations and queries within them.

Can I comfirm that namespace is enterprise feature or not? I tried to create user from terminal(dgrap cli tool) or use the default user(groot:password) to login when active ACL but all failed

All enterprise features were deprecated in v25

1 Like

So all features are free to use?

Yes

Thank you.