-
I would like to know if there exists a convenient helper class within either the Hot Chocolate or Strawberry Shake framework, that I can pass in a DTO (POCO) type, and have it return its GraphQL schema that I can use to code-generate Mutations parameter variables. For example, let's assume I have an API service operation named CreateDailyFloatSheet which takes in a single parameter of type DailyFloatSheet , and where DailyFloatSheet is some custom DTO (POCO) type. I would like to call the helper class that converts DailyFloatSheet into it's equivalent GraphQL type definition. The illustration below shows the CreateDailyFloatSheet API operation accepts a DailyFloatSheet input parameter type ... The code below would be representative of the server-side mutation operation to be called by Hot Chocolate, along with the type definitions for it's DailyFloatSheet type, input parameter...
Ideally, I would utilize the helper class to produce the equivalent GraphQL so that I could code-generate all of the mutations for each API method on an aggregate, of which, would then be imported by Strawberry Shake and generated into the resultant Strawberry Shake client. Any assistance would be greatly appreciated. Please let me know if you require further information. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I have resolved this. |
Beta Was this translation helpful? Give feedback.
I have resolved this.