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

Function: inspect()

inspect(value, toJSONDepth?): string

Defined in: packages/utils/src/inspect.ts:41 

Print a value for error messages. Prefers Node’s util.inspect via process.getBuiltinModule; otherwise a small JSON.stringify / String fallback (non-Node runtimes).

Parameters

value

unknown

toJSONDepth?

number = MAX_RECURSIVE_DEPTH

Returns

string