Vincit / objection-graphql

GraphQL schema generator for objection.js
MIT License
307 stars 34 forks source link

eager is not a function #102

Open root0x opened 2 years ago

root0x commented 2 years ago

I'm running objection v3.0.1 with knex v.2.1.0 and i'm getting errors if I try and fetch a model relation. The query that i'm trying to run is

{ tasks(id:4) { id name deal_id questions { id name } } }

and i get the error builder.eager is not a function. I've looked a the objection documentation and eager has been deprecated and replaced with withGraphFetched. Does anyone know if theres a fork or pr that has patched this?

firassziedan commented 11 months ago

@root0x This version is not compatible with objection 3.x, This package objectionjs-graphql can solve your issue for now