AlmondTill/G3N API

unreactToNote

mutation · in the family Your own session

What it does

Remove your own reaction from a note.

Remove your reaction: strict — removing a mark you never made refuses NOT_FOUND (never a silent no-op). Answers the note's fresh reaction groups. Requires authentication.

Before you call

A signed-in user’s session — the call refuses an API key (AUTHZ/FORBIDDEN).

Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.

Roles that may call it:

What happens

Only your own mark can be removed; removing one you never made is refused rather than silently ignored.

Arguments

NameTypeRequiredNotes
targetConstructIdID ID!yes
noteIdID ID!yes
emojiString String!yes

Returns

NoteReactionGroup [NoteReactionGroup!]! — One reaction group.

Example request

graphql
mutation ExampleUnreactToNote($targetConstructId: ID!, $noteId: ID!, $emoji: String!) {
  unreactToNote(targetConstructId: $targetConstructId, noteId: $noteId, emoji: $emoji) {
    emoji
    count
    userIds
  }
}

Variables:

json
{
  "targetConstructId": "01900000-0000-7000-8000-567d5fed0000",
  "noteId": "01900000-0000-7000-8000-1440c15d0000",
  "emoji": "<emoji>"
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "unreactToNote": [
      {
        "emoji": "<emoji>",
        "count": 1,
        "userIds": [
          "01900000-0000-7000-8000-e0a63e120000"
        ]
      }
    ]
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer