Skip to content
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

Conversation

alex-damian-negru
Copy link
Contributor

@alex-damian-negru alex-damian-negru commented Jul 4, 2021

What does it fix?

Partially closes #6.

How has it been tested?

In Insomnia, do some mutations over at http://localhost:5000/graphql (explore the docs for that).

@alex-damian-negru alex-damian-negru force-pushed the feature/implement-lessonSave-mutation branch from 25bf8ac to 72d91dd Compare July 4, 2021 17:41
@alex-damian-negru alex-damian-negru changed the title [Feature] Implement LessonSave mutation [Feature-14] Implement LessonSave mutation Jul 4, 2021
Copy link
Member

@pirvudoru pirvudoru left a 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

TeacherWorkout.Api/Startup.cs Outdated Show resolved Hide resolved

namespace TeacherWorkout.Api.GraphQL.Inputs
{
public class LessonSaveInput : InputObjectGraphType
Copy link
Member

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.

Copy link
Contributor Author

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? 🤷‍♂️

Copy link
Member

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.

@pirvudoru pirvudoru changed the title [Feature-14] Implement LessonSave mutation Implement LessonSave mutation Jul 11, 2021
@pirvudoru pirvudoru merged commit e3201b3 into code4romania:develop Jul 21, 2021
@alex-damian-negru alex-damian-negru deleted the feature/implement-lessonSave-mutation branch July 21, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement GraphQL resolvers using mock data
2 participants