Clean secret variables for the log. Replaces the value of the keys in the first argument with '[REDACTED]' in the second argument.
'[REDACTED]'
import { clean } from 'apollo-server-logging/clean' clean(['foo'], { foo: 'bar', baz: 'bat' }) // => { foo: '[REDACTED], baz: 'bat' }
Optional
Generated using TypeDoc
Clean secret variables for the log. Replaces the value of the keys in the first argument with
'[REDACTED]'
in the second argument.Example