alfa-leetcode-api icon indicating copy to clipboard operation
alfa-leetcode-api copied to clipboard

Update userData.ts

Open mahdiehmortazavi opened this issue 1 year ago • 5 comments
trafficstars

add discuss, views, and solution

mahdiehmortazavi avatar Jun 25 '24 10:06 mahdiehmortazavi

@alfaarghya so,its not possible to fetch all discussion for each user?

mahdiehmortazavi avatar Jun 26 '24 16:06 mahdiehmortazavi

@mahdiehmortazavi , I don't know if the queries are available or not, but if u want to get the data u need to add graphQl queries, because in my code I don't have those queries.

So first try to add those queries in GQLQueries folder, and check if it's possible or not And don't forget to add types

alfaarghya avatar Jun 26 '24 16:06 alfaarghya

@alfaarghya Thank you for your reply, but since I am not a professional in writing queries with graphql, could you please give me more guidance?

mahdiehmortazavi avatar Jun 26 '24 16:06 mahdiehmortazavi

Yeah Sure!! But I am not professional also 😅

Try to visit src/GQLQueries! Here are all of the queries that me and contributors found. Please try to understand them. You need to change src/GQLQueries/userProfile.ts.

alfaarghya avatar Jun 26 '24 16:06 alfaarghya

Tnx a lot

mahdiehmortazavi avatar Jun 26 '24 16:06 mahdiehmortazavi