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

Function getKind

src/graphql/scripts/utils/schema-helpers.js:75–77  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

73
74// e.g., given `ObjectTypeDefinition`, get `objects`
75function getKind(type) {
76 return graphqlTypes.find((graphqlType) => graphqlType.type === type).kind
77}
78
79async function getPreview(directives, schemaMember, previewsPerVersion) {
80 if (!directives.length) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected