馃悰 [Bug] Comment mutations allow `deleted`, `disabled` flags as input param
Created by: Tirokk
Authored by roschaefer Closed
馃悰 Bugreport
From @alina-beck's comment here: https://github.com/Human-Connection/Human-Connection/pull/1440#discussion_r320329116
The CreateComment and UpdateComment have read-only attributes exposed as input param. We shouldn't use neo4j-graphql-jsfor the mutations for that very reason.
Steps to reproduce the behavior
-
yarn run devin the backend - Visit http://localhost:4000/
- Type
mutation { CreateComment() { content } } - Click into the parantheses and hit Ctrl+Space
- See e.g.
deletedas a suggestion
Expected behavior
Read-only attributes should show up nowhere as input params.
