How to use the isEnumType function from graphql

Find comprehensive JavaScript graphql.isEnumType code examples handpicked from public code repositorys.

34
35
36
37
38
39
40
41
42
43
    : [];
const subFragments =
  graphql_1.isInterfaceType(fieldType) || graphql_1.isUnionType(fieldType) ? schema.getPossibleTypes(fieldType) : {};
if (
  (depth < MAX_DEPTH && options.shallow && isConnectionType(fieldType)) ||
  (depth < 1 && !(graphql_1.isScalarType(fieldType) || graphql_1.isEnumType(fieldType)))
) {
  return;
}
const fields = Object.keys(subFields)
fork icon2
star icon14
watch icon2

+ 11 other calls in file

155
156
157
158
159
160
161
162
163
164
    : null
}

validType (name) {
  const type = this.typeMap[name]
  return !(isScalarType(type) || isEnumType(type) || isUnionType(type))
}

invalidName (name) {
  for (let t of this.ignoreNames) {
fork icon0
star icon2
watch icon8