Opigno API provides possibility to add “like” reactions to posts and comments. The information about user contexts who “liked” the given post can be retrieved by calling getPostLikes query. The following arguments can be used in the query:
ArgumentTypeDescriptionDefault
postIdIntRequired. The post ID to get the related comments.
afterCursorReturns results that come after the specified cursor. Should be used together with first parameter. Cannot be used if before is set.
beforeCursorReturns results that come before the specified cursor. Should be used together with last parameter. Cannot be used if after is set.
firstIntegerReturns up to the first N elements from the list. Required if after parameter is set. Cannot be used together with last.
lastIntegerReturns up to the first N elements from the list. Required if before parameter is set. Cannot be used together with first.
reverseBooleanAllows to change the order of the sorting to DESC.FALSE
sortKeyLikeSortKeyAllows to change the sorting key of the query. Available options: CREATED or USER_NAME (allows to sort by the user context name).CREATED
  query getPostLikes {
    getPostLikes(postId: 169, first: 2) {
      edges {
        node {
          userContext {
            id
            uuid
          }
        }
      }
      pageInfo {
        hasNextPage
        startCursor
        endCursor
      }
    }
  }