diff --git a/components/graphql/field.vue b/components/graphql/field.vue
index b5acb1b54..e717cca2c 100644
--- a/components/graphql/field.vue
+++ b/components/graphql/field.vue
@@ -1,6 +1,18 @@
-
{{ fieldString }}
+
+ {{ fieldName }}
+
+ (
+
+ {{ field.name }}:
+
+ ,
+
+
+ )
+ :
+
{{ gqlField.description }}
@@ -8,6 +20,7 @@
DEPRECATED
+
@@ -36,9 +49,17 @@
diff --git a/pages/graphql.vue b/pages/graphql.vue
index f6c201d94..2ebd97f0c 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -288,7 +288,7 @@
@@ -304,7 +304,7 @@
@@ -320,7 +320,7 @@
@@ -335,8 +335,8 @@
{{ $t("types") }}
-
@@ -563,6 +563,24 @@ export default {
}
},
methods: {
+ handleJumpToType(type) {
+ const typesTab = document.getElementById("gqltypes-tab");
+ typesTab.checked = true;
+
+ const rootTypeName = this.resolveRootType(type).name;
+
+ const target = document.getElementById(`type_${rootTypeName}`);
+ if (target) {
+ target.scrollIntoView({
+ behavior: 'smooth'
+ });
+ }
+ },
+ resolveRootType(type) {
+ let t = type;
+ while (t.ofType != null) t = t.ofType;
+ return t;
+ },
copySchema() {
this.$refs.copySchemaCode.innerHTML = this.doneButton;
const aux = document.createElement("textarea");