Skip to content

Commit

Permalink
fix command result GraphQL field types
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-dax committed Feb 28, 2021
1 parent 3058a3d commit a47e38c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenFTTH.APIGateway/GraphQL/Core/Types/CommandResultType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public CommandResultType(IDataLoaderContextAccessor dataLoader)
{
Description = "Error code and message";

Field(x => x.IsSuccess, type: typeof(IdGraphType)).Name("IsSuccess").Description("True if the command was successfully processed on the server side.");
Field(x => x.ErrorCode, type: typeof(IdGraphType)).Name("ErrorCode").Description("Error code. Please see error code lists defined in the underlying services called");
Field(x => x.ErrorMessage, type: typeof(IdGraphType)).Name("ErrorMessage").Description("Error message");
Field(x => x.IsSuccess, type: typeof(BooleanGraphType)).Name("IsSuccess").Description("True if the command was successfully processed on the server side.");
Field(x => x.ErrorCode, type: typeof(StringGraphType)).Name("ErrorCode").Description("Error code. Please see error code lists defined in the underlying services called");
Field(x => x.ErrorMessage, type: typeof(StringGraphType)).Name("ErrorMessage").Description("Error message");
}
}
}

0 comments on commit a47e38c

Please sign in to comment.