Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
set document(doc) {
if (!doc) return;
if (isValidGql(doc)) {
this.__document = doc;
} else {
throw new TypeError('document must be a gql-parsed DocumentNode');
}
}