Exemplo n.º 1
0
        /// <inheritdoc />
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.AppendLine($"Field: {Field}");
            builder.AppendLine($"Alias: {(Alias ?? "null")}");
            if (BaseType != null)
            {
                builder.AppendLine($"Base type: {BaseType.FullName}");
            }
            if (Arguments.Any())
            {
                builder.AppendLine($"Arguments: {IndentAndAddStart(String.Join(Environment.NewLine, Arguments))}");
            }
            if (SelectionSet.Any())
            {
                builder.AppendLine($"Fields: {IndentAndAddStart(String.Join(Environment.NewLine, SelectionSet))}");
            }
            return(builder.ToString());
        }