fastgql icon indicating copy to clipboard operation
fastgql copied to clipboard

Bump up the dependency

Open tk42 opened this issue 3 years ago • 4 comments

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. ⭐

tk42 avatar Nov 24 '22 20:11 tk42

I really need this.

OysteinAndersenBilles avatar Jan 16 '23 10:01 OysteinAndersenBilles

@arsmn Is this project still alive? Currently there's no way to install/use it

gaby avatar Jun 12 '23 02:06 gaby

@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 avatar Jun 12 '23 13:06 arsmn

@arsmn Thanks! 😁

gaby avatar Jun 12 '23 13:06 gaby