lib/schemaParser.js
function validateIfDeprecated (directives) {
  if (!directives.length) {
    return false
  }

  return directives.some(directive => directive.name.value === 'deprecated')
}
function validateIfDeprecated (directives) {
  if (!directives.length) {
    return false
  }

  return directives.some(directive => directive.name.value === 'deprecated')
}
function validateIfDeprecated ( directives ) { if ( ! directives . length ) { return false } return directives . some ( directive => directive . name . value === 'deprecated' ) }
Check if a field is deprecated
@param directives - Receive the directives array
@returns {boolean}
Check if a field is deprecated