MCPcopy
hub / github.com/GitbookIO/gitbook / isGraphQL

Function isGraphQL

packages/react-openapi/src/contentTypeChecks.ts:13–15  ·  view source on GitHub ↗
(contentType?: string)

Source from the content-addressed store, hash-verified

11}
12
13export function isGraphQL(contentType?: string): boolean {
14 return contentType?.toLowerCase().includes('application/graphql') || false;
15}
16
17export function isCSV(contentType?: string): boolean {
18 return contentType?.toLowerCase().includes('text/csv') || false;

Callers 2

getCurlBodyFunction · 0.90
code-samples.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected