How to get my starred Repls with GraphQL

Question:
As the title says, I need a GraphQL query for getting my starred Repls.

Repl link:

code snippet
3 Likes

Pretty sure people aren’t allowed to share GQL stuff…

5 Likes

Only sometimes. Since this specific case its not malicious its ok but its a case by case basis (heavily)

4 Likes

I would just go with getting all your repls then checking if a repl is starred, as I don’t think there is a way to make it only return starred repls.

1 Like

I don’t know how to do either though.

1 Like

You first need to query repl folders, then for each query repls if isStarred is true.
I’ll put the query when I have time.

1 Like

I still don’t know how to query repl folders. Put the query please

2 Likes

What language are you using? There are quite a few replit graphql libraries that make it so you don’t even need a query.

I’m using Python. Do you mean replit_bot?

Yes, there are a few libs:

  • Replit bot
  • automate-replit (mine, but currently broken, fixing it rn)
  • replapi-it (node js)

Alright, how do I get my starred Repls?

https://replit.com/@CoderGautamYT/Delete-Starred-repls?v=1

Something I made using a bounty, helped me to clean my account storage. It has the code you might find useful.

Thanks @not-ethan !

4 Likes

Thanks, this is EXACTLY what I needed to make (I already knew how to delete)

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.