Skip to content

Commit

Permalink
Query arguments in GraphQL are shown separately with description (hop…
Browse files Browse the repository at this point in the history
…pscotch#1319)

* Query arguments in GraphQL are shown separately with description

* Update field.vue

Co-authored-by: Liyas Thomas <[email protected]>
  • Loading branch information
AndrewBastin and liyasthomas authored Nov 9, 2020
1 parent a84a8e1 commit 7d49f75
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion components/graphql/field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
>
{{ $t("deprecated") }}
</div>
<div v-if="fieldArgs.length > 0">
<h5 class="text-xs my-2">ARGUMENTS:</h5>
<div class="border-l-2 border-acColor px-4">
<div v-for="(field, index) in fieldArgs" :key="index">
{{ field.name }}:
<typelink :gqlType="field.type" :jumpTypeCallback="jumpTypeCallback" />
<div class="mt-2 text-fgLightColor field-desc" v-if="field.description">
{{ field.description }}
</div>
</div>
</div>
</div>
</div>
</template>

Expand All @@ -39,7 +51,6 @@ export default {
jumpTypeCallback: Function,
isHighlighted: { type: Boolean, default: false },
},
computed: {
fieldName() {
return this.gqlField.name
Expand Down

0 comments on commit 7d49f75

Please sign in to comment.