INNER CODE UNIT · JavaScript

getTypeDisplayName

sheerun/graphqlviz · index.js:255

function getTypeDisplayName (typeName) {
  if (typeName === SchemaTypeSymbol) {
    return 'Schema'
  }
  return typeName
}

// get if the object type is enabled
function isEnabled (obj) {
  var enabled = false
  if (obj.isEnumType) {
    enabled = !this.theme.enums.hide
  } else if (obj.isInputType) {
    enabled = !this.theme.inputs.hide
  } else if (obj.isInterfaceType) {
    enabled = !this.theme.interfaces.hide
  } else if (obj.isUnionType) {
    enabled = !this.theme.unions.hide

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…