Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/graphql/graphql-js
/ devAssert
Function
devAssert
src/jsutils/devAssert.ts:2–6 ·
view source on GitHub ↗
(condition: boolean, message: string)
Source
from the content-addressed store, hash-verified
1
/** @internal */
2
export
function
devAssert(condition: boolean, message: string): void {
3
if
(!condition) {
4
throw
new
Error(message);
5
}
6
}
Callers
6
constructor
Method · 0.90
visit
Function · 0.90
buildClientSchema
Function · 0.90
constructor
Method · 0.90
constructor
Method · 0.90
constructor
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected