Files
hoppscotch/components/graphql/argument.vue
2020-08-17 18:29:14 +05:30

33 lines
465 B
Vue

<template>
<span>
<span class="argumentName">
{{ argName }}
</span>
:
<typelink :type="argType" :jumpTypeCallback="jumpCallback" />
</span>
</template>
<style scoped lang="scss"></style>
<script>
export default {
props: {
gqlArg: Object,
},
computed: {
argName() {
return this.gqlArg.name
},
argType() {
return this.gqlArg.type
},
},
methods: {
jumpCallback(typeName) {},
},
}
</script>