feat: object tree item size

This commit is contained in:
Rongjian Zhang
2020-01-30 15:31:46 +08:00
parent 9d6985c391
commit 39c360f281
8 changed files with 155 additions and 83 deletions

View File

@@ -2,15 +2,22 @@ query GhObject($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
object(expression: $expression) {
__typename
... on Blob {
text
byteSize # x
}
... on Tree {
entries {
type
name
object {
__typename
... on Blob {
byteSize
}
}
}
}
... on Blob {
text
}
}
}
}