lib/schemaParser.js
function findArguments (node) {
  if (!node) {
    return []
  }

  return node.map(arg => {
    const name = arg.name.value
    const fieldType = findType(arg.type)
    const isDeprecated = validateIfDeprecated(arg.directives)

    return Object.assign({ name, isDeprecated }, fieldType)
  })
}
function findArguments (node) {
  if (!node) {
    return []
  }

  return node.map(arg => {
    const name = arg.name.value
    const fieldType = findType(arg.type)
    const isDeprecated = validateIfDeprecated(arg.directives)

    return Object.assign({ name, isDeprecated }, fieldType)
  })
}
function findArguments ( node ) { if ( ! node ) { return [ ] } return node . map ( arg => { const name = arg . name . value const fieldType = findType ( arg . type ) const isDeprecated = validateIfDeprecated ( arg . directives ) return Object . assign ( { name , isDeprecated } , fieldType ) } ) }
Find the arguments that are used on the Schema
@param node - The graph schema
@returns {[{name: String, noNull: Boolean, isArray: Boolean, type: String}]}
Find the arguments that are used on the Schema