Sticky F.A.Q.

API References > Comments

  • 17 October 2023
  • 1 reply
  • 57 views
API References > Comments
Userlevel 7

Do you need help with your API queries and/or mutation?

Here are a few that might help you!😉
 

🔎Queries

 

📍LIST COMMENTS FROM A CARD
{
  card(id:xxxxxxxx) {
    title
    comments {
      id
      author_name
      created_at
      text
    }
  }
}

🛠Mutations

 

📍CREATE COMMENT
mutation {
createComment(
input: {
card_id: XXXXXXX
text: "Life is like a box of chocolates.."
}
) {
comment {
id
text
}
}
}

📍UPDATE COMMENT
mutation {
updateComment(
input: {
id: XXXXX
text: "Let me explain something to you."
}
) {
comment {
id
text

}
}
}

📍DELETE COMMENT

mutation {
deleteComment(input:{id: XXXX}) {
success
}
}


1 reply

Userlevel 7
Badge +18

👍👏

Reply