Skip to content

Conversation

@HS-90
Copy link
Collaborator

@HS-90 HS-90 commented Oct 28, 2022

Description: relates to #2400

This PR adds a GraphQL mutation and resolver for adding Exercise comments(Discussion feature). To test:

  1. Go to 'api/graphql'
  2. write a query as follows:
    mutation AddExerciseComment{ addExerciseComment(exerciseId:1, content:"Cool"){ id exerciseId content } }
  3. You should receive a response as such:
    { "data": { "addExerciseComment": { "id": 3, "exerciseId": 1, "content": "Cool" } } }

image

@vercel
Copy link

vercel bot commented Oct 28, 2022

@HS-90 is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Oct 29, 2022 at 2:25AM (UTC)

@codecov
Copy link

codecov bot commented Oct 28, 2022

Codecov Report

Merging #2468 (1ba50f2) into master (2afa052) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2468   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          185       186    +1     
  Lines         3311      3316    +5     
  Branches       879       880    +1     
=========================================
+ Hits          3311      3316    +5     
Impacted Files Coverage Δ
graphql/resolvers/exerciseCommentCrud.ts 100.00% <100.00%> (ø)

Copy link
Member

@flacial flacial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@HS-90 HS-90 merged commit 86d8fe2 into garageScript:master Oct 29, 2022
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.

2 participants