alfaarghya / alfa-leetcode-api

It's a custom leetcode api. This API provides endpoints to retrieve details about a user's profile, badges, solved questions, contest details, contest history, submissions, calendar and and also daily questions, selected problem, list of problems.
https://alfa-leetcode-api.onrender.com/
MIT License
142 stars 58 forks source link

Update userData.ts #22

Open mahdiehmortazavi opened 1 week ago

mahdiehmortazavi commented 1 week ago

add discuss, views, and solution

mahdiehmortazavi commented 1 week ago

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

alfaarghya commented 1 week ago

@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

mahdiehmortazavi commented 1 week ago

@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?

alfaarghya commented 1 week ago

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.

mahdiehmortazavi commented 1 week ago

Tnx a lot