tkhwang / readable

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

✨ (server): Add myUserBookmarksGroupedByInterests query #176

Closed tkhwang closed 3 years ago

tkhwang commented 3 years ago

Description

Type of change

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

{
    "data": {
        "myUserBookmarksGroupedByInterests": [
            {
                "interest": "language",
                "userBookmarks": [
                    {
                        "id": "069bb1c8-fb46-49a4-8e8f-ad98f59b2268",
                        "urlHash": "356d878911a1022afc659762f0592feadb4427ee0a844bb3364a0afc6f0b9ea5",
                        "isPrivate": false,
                        "urlInfo": {
                            "id": "cf6f18c7-eca9-4daf-9d55-4a8865fec1e3",
                            "url": "https://dev.to/domonic/using-vscode-online-with-vscodedev-4e67",
                            "urlHash": "356d878911a1022afc659762f0592feadb4427ee0a844bb3364a0afc6f0b9ea5",
                            "title": "\n              using vscode online with vscode.dev\n            "
                        }
                    },
                    {
                        "id": "76f97e21-e1ca-4c19-aef9-30677bf6f393",
                        "urlHash": "155d714276912785ec10533bdb2b5e83e62e73d492f1cb67c6e7cfac64a66b62",
                        "isPrivate": false,
                        "urlInfo": {
                            "id": "e74cf61a-78c8-48f7-9a1d-e4cfc426912e",
                            "url": "https://dev.to/j471n/some-javascript-methods-you-should-know-i15",
                            "urlHash": "155d714276912785ec10533bdb2b5e83e62e73d492f1cb67c6e7cfac64a66b62",
                            "title": "\n              Some Javascript Methods you should know\n            "
                        }
                    }
                ]
            },
            {
                "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            "
                        }
                    }
                ]
            }
        ]
    }
}

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/Vrpgvy6uT4xRzi4trQnfLi8wSg32
✅ Preview: Failed