function visitDirective(directive: Directive): ?Directive {
  if (
    this.getContext()
      .serverSchema.getDirectives()
      .some(schemaDirective => schemaDirective.name === directive.name)
  ) {
    return directive;
  }
  return null;
}
function visitDirective(directive: Directive): ?Directive {
  if (
    this.getContext()
      .serverSchema.getDirectives()
      .some(schemaDirective => schemaDirective.name === directive.name)
  ) {
    return directive;
  }
  return null;
}
function visitDirective ( directive : Directive ) : ? Directive { if ( this . getContext ( ) . serverSchema . getDirectives ( ) . some ( schemaDirective => schemaDirective . name === directive . name ) ) { return directive ; } return null ; }
@internal

Skip directives not defined in the original schema.
@internal
Visit a directive