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