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)
2
14
2
+ 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) {
0
2
8
graphql.GraphQLNonNull is the most popular function in graphql (4226 examples)