Bump up the dependency
Problem
Can't init by running go run github.com/arsmn/fastgql init
# github.com/arsmn/fastgql/graphql/executor
../../../../go/pkg/mod/github.com/arsmn/[email protected]/graphql/executor/executor.go:73:22: cannot use validator.VariableValues(e.es.Schema(), rc.Operation, params.Variables) (value of type error) as type *gqlerror.Error in assignment:
need type assertion
../../../../go/pkg/mod/github.com/arsmn/[email protected]/graphql/executor/executor.go:174:15: cannot use err (variable of type error) as type *gqlerror.Error in argument to errcode.Set:
need type assertion
../../../../go/pkg/mod/github.com/arsmn/[email protected]/graphql/executor/executor.go:175:29: cannot use err (variable of type error) as type *gqlerror.Error in array or slice literal:
need type assertion
Reason
gqlparser wouldn’t return *gqlerror.Error anymore. It just return error. See here if you interested.
What did I fixed
As workaround, Message of gqlerror.Error is set to error.
And this is irrelevant but golang-lru supports Generics now. So types could be specified. ⭐
I really need this.
@arsmn Is this project still alive? Currently there's no way to install/use it
@gaby This project is not maintained for a long time as I didn't have free time to work on. I will take a look at to improve and update it soon.
@arsmn Thanks! 😁