[Bug] Graphql V4 languages missing size #24478
-
Following query gives me the total size in all the languages, which is not really useful.
But what I’m looking for is something like
Expecting something similar to quering Is this is a bug or am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @chmelevskij! I believe that it is possible to do what you want! Looking at the schema, it looks like the connection between Repositories and Languages does have an “edge type” that includes the number of bytes written in that language in the particular repository. Here’s the query that I’m using for Facebook’s React Repository:
This gives me the same results as I can see in the REST API, sorted by the number of bytes in each language in descending order. Let me know if I’ve misread, and have a great day! |
Beta Was this translation helpful? Give feedback.
Hey @chmelevskij!
I believe that it is possible to do what you want! Looking at the schema, it looks like the connection between Repositories and Languages does have an “edge type” that includes the number of bytes written in that language in the particular repository. Here’s the query that I’m using for Facebook’s React Repository:
This gives me the same results as I can see in the REST API, sorted by the number of bytes in each language in descending order.
Let me know if I’ve misre…