-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement LessonSave mutation #31
Implement LessonSave mutation #31
Conversation
25bf8ac
to
72d91dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution. Please check the comments
|
||
namespace TeacherWorkout.Api.GraphQL.Inputs | ||
{ | ||
public class LessonSaveInput : InputObjectGraphType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposal:
Rename this to a LessonSaveInputType
Define a LessonSaveInput
Inherit LessonSaveInputType from InputObjectGraphType
Define the fields using the strongly typed methods to avoid typos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand this correctly. Which strongly typed methods
are you referring to?
Also, wouldn't it be confusing if a file was named ..InputType
? Would it be both an Input
& a Type
? 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made alex-damian-negru#1 to show what i was talknig about.
…ation Reorganize input and output types
What does it fix?
Partially closes #6.
How has it been tested?
In
Insomnia
, do some mutations over athttp://localhost:5000/graphql
(explore the docs for that).