archive/v2/src/GraphQLFactoryDecomposer.js
function baseDef (info) {
  const { name, isList, isNonNull } = info
  const def = {
    type: isList ? [ name ] : name
  }
  if (isNonNull) def.nullable = false
  return def
}
function baseDef (info) {
  const { name, isList, isNonNull } = info
  const def = {
    type: isList ? [ name ] : name
  }
  if (isNonNull) def.nullable = false
  return def
}
function baseDef ( info ) { const { name , isList , isNonNull } = info const def = { type : isList ? [ name ] : name } if ( isNonNull ) def . nullable = false return def }
creates a base def object
@param info
@returns {{type: [null]}}
creates a base def object