Code Monkey home page Code Monkey logo

Comments (10)

exAspArk avatar exAspArk commented on June 14, 2024 6

I've finally made graphql-guard work with the latest graphql gem version and Interpreter. I'd appreciate if someone would like to give it a try #39 😉

# in your Gemfile
gem 'graphql-guard', github: 'exAspArk/graphql-guard', branch: 'graphql-interpreter'

from graphql-guard.

imcvampire avatar imcvampire commented on June 14, 2024 2

Hi @exAspArk,

The latest version brings new runtime as a stable feature. Can you consider to update package?
Screen Shot 2020-03-15 at 10 22 51 PM

from graphql-guard.

exAspArk avatar exAspArk commented on June 14, 2024 2

Released a new version 2.0.0. More information in the Changelog.

Please let me know if there are any issues :)

from graphql-guard.

DanAndreasson avatar DanAndreasson commented on June 14, 2024

I have the same issue

from graphql-guard.

 avatar commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

from graphql-guard.

tmikoss avatar tmikoss commented on June 14, 2024

Any suggestions where to start debugging this issue?

from graphql-guard.

exAspArk avatar exAspArk commented on June 14, 2024

Hey guys,

This issue is related to this one #28 (comment). I won't be adding support for the new Interpreter as long as the graphql gem has this feature in the experimental status:

image

I would like to avoid making unnecessary breaking changes from one graphql gem version to another. But feel free to open a PR if you want to contribute and help other people :)

from graphql-guard.

tmikoss avatar tmikoss commented on June 14, 2024

Thanks for the update, makes sense. Had not noticed the Interpreter is still marked as experimental. Being included in generate graphql:install output made me sure it was the new default.

from graphql-guard.

exAspArk avatar exAspArk commented on June 14, 2024

@tmikoss yeah, it was marked as experimental for a while now. Please wake me up once the Interpreter is stable 😸

from graphql-guard.

msroot avatar msroot commented on June 14, 2024

I have the same issue

Using:

graphql (1.10.4)
graphql-batch (0.4.2)
graphql (>= 1.3, < 2)
promise.rb (~> 0.7.2)
graphql-errors (0.4.0)
graphql (>= 1.6.0, < 2)
graphql-guard (1.3.1)
graphql (>= 1.6.0, < 2)
graphql-query-resolver (0.2.0)
graphql (~> 1.0, >= 1.0.0)
graphql-rails_logger (1.2.2)

class MyApiSchema < GraphQL::Schema
  mutation(Types::MutationType)
  query(Types::QueryType)
  

  # Opt in to the new runtime (default in future graphql-ruby versions)
  use GraphQL::Execution::Interpreter
  use GraphQL::Analysis::AST

  # Add built-in connections for pagination
  use GraphQL::Pagination::Connections
  
  use GraphQL::Batch
  use GraphQL::Guard.new(policy_object: GraphqlPolicy)  
end

It works when remove the

use GraphQL::Execution::Interpreter
use GraphQL::Analysis::AST

from graphql-guard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.