AlmondTill/G3N API

On this page

boostBookmark

mutation · in the family Your own session

What it does

Pop one of your bookmarked records to the top of your feed — a personal “look at this again now”.

Pop one of YOUR bookmarks to the top of your feed. An absent row refuses NOT_FOUND/BOOKMARK — you boost what you subscribed. Requires authentication.

What happens

Only your own feed moves; the record itself is untouched.

Who may call it

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

Arguments

NameTypeRequiredNotes
targetTypeString String!yesNo further notes.
targetIdID ID!yesNo further notes.

Returns

BookmarkRef BookmarkRef! — One raw bookmark row.

Example request

mutation ExampleBoostBookmark($targetType: String!, $targetId: ID!) {
  boostBookmark(targetType: $targetType, targetId: $targetId) {
    subjectKind
    ownerId
    targetType
    targetId
    createdAt
    createdBy
    boostedAt
    popAt
    highlightedAt
  }
}

Variables:

{
  "targetType": "<target type>",
  "targetId": "01900000-0000-7000-8000-446adfd50000"
}

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

Example response

{
  "data": {
    "boostBookmark": {
      "subjectKind": "USER",
      "ownerId": "01900000-0000-7000-8000-e51b6a790000",
      "targetType": "<target type>",
      "targetId": "01900000-0000-7000-8000-446adfd50000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "createdBy": "01900000-0000-7000-8000-0b14e5a60000",
      "boostedAt": "2027-01-31T00:00:00.000Z",
      "popAt": "2027-01-31T00:00:00.000Z",
      "highlightedAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer