Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
<template>
<template v-if="'args' in field">
<GraphqlExplorerSection
v-if="field.args.length > 0"
:title="t('graphql.arguments')"
>
<GraphqlArgument
v-for="arg in field.args"
:key="arg.name"
:arg="arg"
:show-add-button="!readonly"
/>
</GraphqlExplorerSection>
</template>
</template>
<script setup lang="ts">
import { GraphQLField } from "graphql"
import { useI18n } from "~/composables/i18n"
const t = useI18n()
withDefaults(
defineProps<{
field: GraphQLField<any, any>
readonly?: boolean
}>(),
{
readonly: false,
}
)
</script>