tkhwang / readable

anti-social social bookmark and much more...
5 stars 1 forks source link

♻️ (server): Change output format of myUserBookmarksGroupedByInterests #177

Closed tkhwang closed 3 years ago

tkhwang commented 3 years ago

Description

Type of change

MyUserBookmarksGroupedByInterests 나의 관심사 안의 북마크 (limit 3개)

query  MyUserBookmarksGroupedByInterests {
  myUserBookmarksGroupedByInterests {
    interest {
        interestId
        interest
    }
    userBookmarks {
      id
      urlHash
            isPrivate
      urlInfo {
        id
        url
        urlHash
        title
      }
    }    
  }
}

            {
                "interest": {
                    "interestId": "78a1fbca-11cd-4b05-973c-990ac1c900fc",
                    "interest": "frontend"
                },
                "userBookmarks": [
                    {
                        "id": "ffcced3e-88db-4eca-99fb-86f4a0965580",
                        "urlHash": "889586fc27ae19aa73c54f3f1c08a80acda33d13f67bb26ec316b3ab134f12db",
                        "isPrivate": false,
                        "urlInfo": {
                            "id": "725babd8-1437-4806-bce4-c2739bc09da4",
                            "url": "https://dev.to/alim1496/react-with-typescript-1gp5",
                            "urlHash": "889586fc27ae19aa73c54f3f1c08a80acda33d13f67bb26ec316b3ab134f12db",
                            "title": "\n              React with Typescript\n            "
                        }
                    }
                ]
            },

각 interest 안에 북마크 pagination

  query PaginationUserBookmarksOnFeed(
      $first: Int, 
      $after: PaginationCursor, 
      $tagId: String,
      $interestId: String,
      $myUserBookmark: Boolean
      $userId: String
  ) {

Further to-do lists

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tkhwang/readable/F5pMu5RiJT2mpw5CaMQT29Emw9xn
✅ Preview: Failed