Skip to content

Commit

Permalink
clean up minor
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed May 24, 2024
1 parent 18304ee commit cc1e404
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion Lib9c.GraphQL/Objects/SheetObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ namespace Lib9c.GraphQL.Objects;
public class SheetObject
{
public string Name { get; set; } = string.Empty;
// public Address Address { get; set; } = default;
public string? Csv { get; set; }
public string? Json { get; set; }
}
9 changes: 6 additions & 3 deletions Lib9c.GraphQL/Types/SheetType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ public class SheetType : ObjectType<SheetObject>
{
protected override void Configure(IObjectTypeDescriptor<SheetObject> descriptor)
{
descriptor.Field(f => f.Name)
descriptor
.Field(f => f.Name)
.Name("name")
.Description("The name of the sheet.")
.Type<NonNullType<SheetNameType>>();
descriptor.Field(f => f.Csv)
descriptor
.Field(f => f.Csv)
.Name("csv")
.Description("The CSV content of the sheet.")
.Type<StringType>();
descriptor.Field(f => f.Json)
descriptor
.Field(f => f.Json)
.Name("json")
.Description("The JSON content of the sheet.")
.Type<StringType>();
Expand Down

0 comments on commit cc1e404

Please sign in to comment.