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

preload is not working with class based syntax #36

Open
PriyankaRPathak opened this issue Sep 7, 2020 · 3 comments
Open

preload is not working with class based syntax #36

PriyankaRPathak opened this issue Sep 7, 2020 · 3 comments

Comments

@PriyankaRPathak
Copy link

Hi,
I'm using rails 4.1.16 and ruby 2.3.8 in my application. Converting DSL to class based syntax cause issue as it throws below error.

preload is undefined.

Can anyone suggest alternate option?

@atatarenko
Copy link

I was able to continue using the gem by changing the way how it's included in the Gemfile, see #33.

@PriyankaRPathak
Copy link
Author

PriyankaRPathak commented Sep 8, 2020

Have you found any straightforward documentation to convert DSL => class based syntax for each type?

@atatarenko
Copy link

Yeah, I found one, here it is – https://graphql-ruby.org/schema/class_based_api.html

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