Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsisDangerousObjectKey

Function: isDangerousObjectKey()

isDangerousObjectKey(key): boolean

Defined in: packages/utils/src/jsutils.ts:46 

True for keys that must never be used for object-path writes because they reach the prototype chain (__proto__, constructor, prototype).

Parameters

key

unknown

Returns

boolean