• Clean secret variables for the log. Replaces the value of the keys in the first argument with '[REDACTED]' in the second argument.

    Example

    import { clean } from 'apollo-server-logging/clean'

    clean(['foo'], { foo: 'bar', baz: 'bat' })
    // => { foo: '[REDACTED], baz: 'bat' }

    Parameters

    • names: string[]
    • Optional variables: Variables

    Returns Variables

Generated using TypeDoc