src/type/type.js
function getArguments(type, args = {}) {
  const fields = getTypeFields(type);

  return reduce(fields, (args, field) => {
    // Extract non null fields, those are not required in the arguments
    if (field.type instanceof GraphQLNonNull && field.name !== 'id') {
      field.type = field.type.ofType;
    }

    if (field.type instanceof GraphQLScalarType) {
      args[field.name] = field;
    }

    return args;
  }, {
    ...args,
    orderBy: {
      name: 'orderBy',
      type: getOrderByType(type, fields)
    }
  });
}
function getArguments(type, args = {}) {
  const fields = getTypeFields(type);

  return reduce(fields, (args, field) => {
    // Extract non null fields, those are not required in the arguments
    if (field.type instanceof GraphQLNonNull && field.name !== 'id') {
      field.type = field.type.ofType;
    }

    if (field.type instanceof GraphQLScalarType) {
      args[field.name] = field;
    }

    return args;
  }, {
    ...args,
    orderBy: {
      name: 'orderBy',
      type: getOrderByType(type, fields)
    }
  });
}
function getArguments ( type , args = { } ) { const fields = getTypeFields ( type ) ; return reduce ( fields , ( args , field ) => { // Extract non null fields, those are not required in the arguments if ( field . type instanceof GraphQLNonNull && field . name !== 'id' ) { field . type = field . type . ofType ; } if ( field . type instanceof GraphQLScalarType ) { args [ field . name ] = field ; } return args ; } , { ... args , orderBy : { name : 'orderBy' , type : getOrderByType ( type , fields ) } } ) ; }
Returns query arguments for a GraphQL type
@param  {GraphQLType} type
@param  {Object} args
@return {Object}
Returns query arguments for a GraphQL type