public SchemaPrinter( ISchema schema, SchemaPrinterOptions options = null) { _schema = schema; Options = options ?? new SchemaPrinterOptions(); if (Options.CustomScalars?.Count > 0) { _scalars.AddRange(Options.CustomScalars); } }
public SchemaPrinter( ISchema schema, SchemaPrinterOptions options = null) { _schema = schema; _options = options ?? new SchemaPrinterOptions(); if (_options.CustomScalars?.Count > 0) { _scalars.Fill(_options.CustomScalars); } }
/// <summary> /// Creates printer with the specified options. /// </summary> /// <param name="schema">Schema to print.</param> /// <param name="options">Printer options.</param> public SchemaPrinter(ISchema schema, SchemaPrinterOptions options = null) { Schema = schema; Options = options ?? new SchemaPrinterOptions(); }