MCPcopy Create free account
hub / github.com/github/docs / Query

Function Query

components/graphql/Query.tsx:13–38  ·  view source on GitHub ↗
({ item }: Props)

Source from the content-addressed store, hash-verified

11}
12
13export function Query({ item }: Props) {
14 const { locale } = useRouter()
15 const { t } = useTranslation('products')
16
17 return (
18 <GraphqlItem item={item} headingLevel={3}>
19 <div>
20 <p>
21 <b>{t('graphql.reference.type')}: </b>
22 <Link href={item.href} locale={locale}>
23 {item.type}
24 </Link>
25 </p>
26 </div>
27
28 <div>
29 {item.args.length > 0 && (
30 <>
31 <h4>{t('graphql.reference.arguments')}</h4>
32 <Table fields={item.args} />
33 </>
34 )}
35 </div>
36 </GraphqlItem>
37 )
38}

Callers

nothing calls this directly

Calls 1

useTranslationFunction · 0.90

Tested by

no test coverage detected