file size non null
This commit is contained in:
@@ -55,7 +55,7 @@ func graphqlTypes() {
|
||||
},
|
||||
},
|
||||
"size": &graphql.Field{
|
||||
Type: graphql.Int,
|
||||
Type: graphql.NewNonNull(graphql.Int),
|
||||
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
|
||||
file, err := loadFile(p)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user