Please read through this to have a better understanding of the nuances that take place when executing commands which we will cover in the upcoming pages.
my-api
in a production and staging namespace. All graph operations and compositions are scoped to graphs present in a particular namespace. Every organization is provided a default
namespace which cannot be deleted. You can create additional namespaces with the namespace CLI. Most of the CLI commands respect a -n
flag or use default
respectively. If you delete a namespace all resources within the namespace are deleted.
Namespaces have the following restrictions:
key=value
pair separated by a =
sign. Ex: team=A
region=us-east-1
You can assign labels to only subgraphs. Labels have the following restrictions
Team A
or Team B
and Region us-east-1
. This can be expressed in the following way:
--label-matcher team=A,team=B region=us-east-1
the long version is
--label-matcher team=A,team=B --label-matcher region=us-east-1
The above matcher translates to logically to (team=A || team=B) && region=us-east-1
--labels team=A
2. Hobbies --labels team=D
3. Users --labels region=us-east-1
Based on the two examples above this setup will create a federated graph consisting of subgraphs Products and Users.