src/where.js
function handleValue (node, options) {
  let value = node.value

  if (node.columnNode) {
    const field = _.find(options.esriFields, { name: node.columnNode.column })

    if (_.has(field, 'domain.codedValues')) {
      const actual = _.find(field.domain.codedValues, { code: value })

      if (actual) {
        value = actual.name
      }
    }
  }

  if (typeof value === 'string') {
    value = `'${value}'`
  }

  return value
}
function handleValue (node, options) {
  let value = node.value

  if (node.columnNode) {
    const field = _.find(options.esriFields, { name: node.columnNode.column })

    if (_.has(field, 'domain.codedValues')) {
      const actual = _.find(field.domain.codedValues, { code: value })

      if (actual) {
        value = actual.name
      }
    }
  }

  if (typeof value === 'string') {
    value = `'${value}'`
  }

  return value
}
function handleValue ( node , options ) { let value = node . value if ( node . columnNode ) { const field = _ . find ( options . esriFields , { name : node . columnNode . column } ) if ( _ . has ( field , 'domain.codedValues' ) ) { const actual = _ . find ( field . domain . codedValues , { code : value } ) if ( actual ) { value = actual . name } } } if ( typeof value === 'string' ) { value = ` ${ value } ` } return value }
Convert a value node to its string representation.

If the value node has a reference to its column and this column is an encoded
field, this function will try to decode the value.

@param  {object} node    AST value node
@param  {object} options winnow options
@return {string}         value string
Convert a value node to its string representation .