rmosolgo / graphql-ruby

Ruby implementation of GraphQL
http://graphql-ruby.org
MIT License
5.37k stars 1.38k forks source link

Morteza #5106

Open MORTEZAMIRSALI opened 2 hours ago

MORTEZAMIRSALI commented 2 hours ago

Describe the bug

A clear and concise description of what the bug is.

Versions

graphql version: rails (or other framework): other applicable versions (graphql-batch, etc)

GraphQL schema

Include relevant types and fields (in Ruby is best, in GraphQL IDL is ok). Any custom extensions, etc?

class Product < GraphQL::Schema::Object
  field :id, ID, hash_key: :id
  # …
end

class ApplicationSchema < GraphQL::Schema
  query QueryType
  # …
end

GraphQL query

Example GraphQL query and response (if query execution is involved)

query {
  products { id title }
}
{
  "data": {
    "products": […]
  }
}

Steps to reproduce

Steps to reproduce the behavior

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

What specifically went wrong?

Place full backtrace here (if a Ruby exception is involved):

Click to view exception backtrace ``` Something went wrong 2.6.0/gems/graphql-1.9.17/lib/graphql/subscriptions/instrumentation.rb:34:in `after_query' … don't hesitate to include all the rows here: they will be collapsed ```

Additional context

Add any other context about the problem here.

With these details, we can efficiently hunt down the bug!

MORTEZAMIRSALI commented 2 hours ago