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

Getting error - After upgrading rails from 5.2.8 to 6.1.7 #108

Open
sunil-lakshman opened this issue Nov 29, 2023 · 3 comments
Open

Getting error - After upgrading rails from 5.2.8 to 6.1.7 #108

sunil-lakshman opened this issue Nov 29, 2023 · 3 comments
Labels

Comments

@sunil-lakshman
Copy link

Hi.. Team,

After upgrading rails from 5.2.8 to 6.1.7, graphlient gem throwing an error.

Error: graphql-client (0.18.0) lib/graphql/client/query_typename.rb:28:in `add_typename'

Note: Same code working fine In rails 5.

@dblock
Copy link
Collaborator

dblock commented Nov 29, 2023

I would start by adding appraisals (tests) so we can run tests with various versions of Rails.

@dblock dblock added the bug label Dec 26, 2023
@yurgon
Copy link

yurgon commented Jan 18, 2024

the same on rails 7

@Samsinite
Copy link

IMO looks like a graphql-client issue, since that is where the exception is thrown:

Error: graphql-client (0.18.0) lib/graphql/client/query_typename.rb:28:in `add_typename'

TL;DR I'm guessing that the version of the graphql library you were using was upgraded to a version that didn't work with graphql-client <= v0.18.0.

Have you tried v0.19.0 or v0.20.0? graphql-client relies on graphql, and there was an issue where it didn't support the latest version of graphql and users had to manually pin the version of graphql used in their Gemfile. This has been fixed in 0.19.0 and 0.20.0 and I'm guessing resolves your issue.

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

No branches or pull requests

4 participants