Skip to content
Snippets Groups Projects

[graphql] Convert to using the new query interpreter runtime

Merged Brett Walker requested to merge bw-graphql-interpreter into master
Compare changes
  • Side-by-side
  • Inline
Files
51
  • f77fe392
    Move to the new GraphQL interpreter · f77fe392
    Brett Walker authored
    - Update to graphql 1.13.12
    - Create the new AST LoggerAnalyzer ported from the original LoggerAnalyzer
    - Create the new AST RecursionAnalyzer ported from the original RecursionAnalyzer
    - Override unauthorized_object(unauthorized_error)
    - Fix arg handlling in GraphQL::Helpers
    - Now some exceptions are being caught much earlier,
      breaking many unit test specs that relied on checking
      for exceptions
    - Must override == in the class itself
    - GraphQL-Ruby's types used to override def ==(other),
      but it doesn't anymore when using the interpreter
    - Procs are no longer supported
    - GraphQL::Pagination::Connections is now a default and
      is no longer needed
    - Check for object in FindClosest
    - Casues a GraphQL::Schema::DuplicateNamesError
    - Add new expect_graphql_error_to_be_created
    - Adjust how args are built for testing
    - Removal of to_graphql
    - Fix signature of get_type
    - Override new complexity calculation to use our own
    - When using `resolve` in GraphqlHelpers, the arguments
    must be passed in a certain way. For this transition, we can
    indicate how we want the arguments handled.
    - BaseInputObject must return super from `prepare`
    This has the correct effect of the entire input object being
    passed through to the resolver in `args`.  Inside there
    you need to call `to_h` to extract the ruby arguments.
    - Remove prepare from NegatedBoardIssueInputType
    - Return nil if TimeType is nil
    Let higher level argument checks do their job.
    Fixes spec/requests/api/graphql/mutations/releases/update_spec.rb
    - DEBUG_GRAPHQL=1 now ignores graphql tracers
    and sets the timeout to 20 mins, to facilitate
    debugging
    - Remove use of metadata[:type_class]
Loading