Remove `layer` field in the `instance` and `process` commands (#149)

* Remove `layer` field in the `instance` and `process` commands
diff --git a/CHANGES.md b/CHANGES.md
index 39f0e2a..267f6ff 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -12,6 +12,7 @@
 - Add the sub-command `profiling ebpf create prepare` to query data for prepare creating task.(#141)
 - Add the sub-command `process estimate scale` to estimate the process scale.(#142)
 - Update the `process list` to must be provided the instance and duration.(#144)
+- Remove `layer` field in the `instance` and `process` commands for 9.1.0 GraphQL query protocol's breaking changes (#149)
 
 0.10.0
 ------------------
diff --git a/assets/graphqls/metadata/v2/GetInstance.graphql b/assets/graphqls/metadata/v2/GetInstance.graphql
index 45722c4..9661f3e 100644
--- a/assets/graphqls/metadata/v2/GetInstance.graphql
+++ b/assets/graphqls/metadata/v2/GetInstance.graphql
@@ -22,7 +22,6 @@
         name
         language
         instanceUUID
-        layer
         attributes {
             name
             value
diff --git a/assets/graphqls/metadata/v2/GetProcess.graphql b/assets/graphqls/metadata/v2/GetProcess.graphql
index 5f4f008..016ba46 100644
--- a/assets/graphqls/metadata/v2/GetProcess.graphql
+++ b/assets/graphqls/metadata/v2/GetProcess.graphql
@@ -17,6 +17,6 @@
 
 query ($processId: ID!) {
     result: getProcess(processId: $processId) {
-        id name serviceId serviceName instanceId instanceName layer agentId detectType labels attributes { name value }
+        id name serviceId serviceName instanceId instanceName agentId detectType labels attributes { name value }
     }
 }
\ No newline at end of file
diff --git a/assets/graphqls/metadata/v2/Instances.graphql b/assets/graphqls/metadata/v2/Instances.graphql
index cf6d9cb..39c07bb 100644
--- a/assets/graphqls/metadata/v2/Instances.graphql
+++ b/assets/graphqls/metadata/v2/Instances.graphql
@@ -22,7 +22,6 @@
         name
         language
         instanceUUID
-        layer
         attributes {
             name
             value
diff --git a/assets/graphqls/metadata/v2/Processes.graphql b/assets/graphqls/metadata/v2/Processes.graphql
index b0befbf..7c54742 100644
--- a/assets/graphqls/metadata/v2/Processes.graphql
+++ b/assets/graphqls/metadata/v2/Processes.graphql
@@ -17,6 +17,6 @@
 
 query ($instanceId: ID!, $duration: Duration!) {
     result: listProcesses(instanceId: $instanceId, duration: $duration) {
-        id name serviceId serviceName instanceId instanceName layer agentId detectType labels attributes { name value }
+        id name serviceId serviceName instanceId instanceName agentId detectType labels attributes { name value }
     }
 }
\ No newline at end of file
diff --git a/go.mod b/go.mod
index 01fe35b..7ee642d 100644
--- a/go.mod
+++ b/go.mod
@@ -24,5 +24,5 @@
 	gopkg.in/yaml.v2 v2.4.0
 	k8s.io/apimachinery v0.21.1
 	sigs.k8s.io/controller-runtime v0.7.0
-	skywalking.apache.org/repo/goapi v0.0.0-20220412071816-33e4ea2a99b4
+	skywalking.apache.org/repo/goapi v0.0.0-20220510085451-6911e2f4c612
 )
diff --git a/go.sum b/go.sum
index 26b3627..1861579 100644
--- a/go.sum
+++ b/go.sum
@@ -950,5 +950,5 @@
 sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
 sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
 sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
-skywalking.apache.org/repo/goapi v0.0.0-20220412071816-33e4ea2a99b4 h1:2JJA2JLUkdj5vimJH4+JYdeqqlr+F+g2eQYS6EqxUrA=
-skywalking.apache.org/repo/goapi v0.0.0-20220412071816-33e4ea2a99b4/go.mod h1:uWwwvhcwe2MD/nJCg0c1EE/eL6KzaBosLHDfMFoEJ30=
+skywalking.apache.org/repo/goapi v0.0.0-20220510085451-6911e2f4c612 h1:nj/UGfpda0FbFJNoRDQYwuXEdlUJWPJFNxxKJyHcync=
+skywalking.apache.org/repo/goapi v0.0.0-20220510085451-6911e2f4c612/go.mod h1:uWwwvhcwe2MD/nJCg0c1EE/eL6KzaBosLHDfMFoEJ30=
diff --git a/test/cases/8.8.1/expected/instance-list.yml b/test/cases/8.8.1/expected/instance-list.yml
index dc11872..310b83b 100644
--- a/test/cases/8.8.1/expected/instance-list.yml
+++ b/test/cases/8.8.1/expected/instance-list.yml
@@ -23,5 +23,4 @@
     {{- end }}
   language: {{ .language }}
   instanceuuid: {{ b64enc "provider" }}.1_{{ b64enc "provider1" }}
-  layer: ""
   {{- end }}
diff --git a/test/cases/9.0.0/expected/instance-get.yml b/test/cases/9.0.0/expected/instance-get.yml
index 2451a46..3069783 100644
--- a/test/cases/9.0.0/expected/instance-get.yml
+++ b/test/cases/9.0.0/expected/instance-get.yml
@@ -22,4 +22,3 @@
 {{- end }}
 language: {{ .language }}
 instanceuuid: {{ b64enc "provider" }}.1_{{ b64enc "provider1" }}
-layer: GENERAL
diff --git a/test/cases/9.0.0/expected/instance-list.yml b/test/cases/9.0.0/expected/instance-list.yml
index 870f57b..310b83b 100644
--- a/test/cases/9.0.0/expected/instance-list.yml
+++ b/test/cases/9.0.0/expected/instance-list.yml
@@ -23,5 +23,4 @@
     {{- end }}
   language: {{ .language }}
   instanceuuid: {{ b64enc "provider" }}.1_{{ b64enc "provider1" }}
-  layer: GENERAL
   {{- end }}