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

Multiple Queries support on Graphoid #31

Open
Victorcorcos opened this issue Apr 24, 2020 · 1 comment
Open

Multiple Queries support on Graphoid #31

Victorcorcos opened this issue Apr 24, 2020 · 1 comment

Comments

@Victorcorcos
Copy link

Hello @maxiperezc

Firstly, congratulations for your Graphoid gem, which automatically creates the basic GraphQL Queries and Mutations via ruby metaprogramming.

I wanna ask you a question regarding an issue, I believe a feature is not implemented on Graphoid yet...

How can I perform Multiple Queries on Graphoid?References: https://hasura.io/docs/1.0/graphql/manual/queries/multiple-queries.html

On GraphQL, it is possible to perform Multiple Queries. However, somehow, the Graphoid gem is restricting this feature.
In fact, an error is being shown when trying to perform multiple queries
Please, take look at the below picture..

Screen Shot 2020-04-24 at 19 48 14

With single queries, it works wonderfully, but I need to do multiple queries in my project :/

Screen Shot 2020-04-24 at 19 31 00

If it is not yet implemented on the Graphoid gem, can you give me an idea where I need to touch to enable this feature?

I'm willing to play with with Graphoid's internal code in order to make Multiple Queries this possible.

Best regards;
Thank You very much!

--

@Victorcorcos
Copy link
Author

Victorcorcos commented Apr 24, 2020

The line where this error happens

gems/graphoid-0.0.6/lib/graphoid/drivers/mongoid.rb:131

Screen Shot 2020-04-24 at 20 12 59

Graphoid version: 0.6.0
Rails version: 6.0.2.1

Important detail: I couldn't use the last version of the graphoid gem because of my Rails version! The following error appears when trying to use the graphoid last version (currently, the last version is: 0.1.0)

Bundler could not find compatible versions for gem "rails":
  In snapshot (Gemfile.lock):
    rails (= 6.0.2.1)
  In Gemfile:
    rails (~> 6.0.2)
    graphoid (~> 0.1) was resolved to 0.1.0, which depends on
      rails (~> 5)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

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

1 participant