Skip to content

lowercase

resolvers
Source Code | Documentation

See also: resolvers/resolveData resolvers/resolveResult resolvers/resolveQuery

Returns a resolver property that converts string values to lowercase. Non-string values are passed through unchanged.

ts
  import {  } from 'feathers-utils/resolvers';

Example

ts
import { resolveData, lowercase } from 'feathers-utils/resolvers'

resolveData({
  email: lowercase(),
})

Type declaration

Show Type Declarations
ts
/**
 * Returns a resolver property that converts string values to lowercase.
 * Non-string values are passed through unchanged.
 *
 * @example
 * ```ts
 *
 *
 * resolveData({
 *   email: lowercase(),
 * })
 * ```
 */
export declare function lowercase<H extends HookContext = HookContext>(
  condition?: ResolverCondition<H>,
): (options: ResolverPropertyOptions<any, any, H>) => any
ArgumentTypeDescription
conditionResolverCondition<H>

Released under the MIT License.