Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eager is not a function #102

Open
root0x opened this issue Jul 4, 2022 · 1 comment
Open

eager is not a function #102

root0x opened this issue Jul 4, 2022 · 1 comment

Comments

@root0x
Copy link

root0x commented Jul 4, 2022

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
Copy link

firassziedan commented Aug 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants