graphql 1.12.4 → 1.12.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generators/graphql/install_generator.rb +2 -1
  3. data/lib/generators/graphql/loader_generator.rb +1 -0
  4. data/lib/generators/graphql/mutation_generator.rb +1 -0
  5. data/lib/generators/graphql/relay_generator.rb +1 -0
  6. data/lib/generators/graphql/templates/graphql_controller.erb +2 -2
  7. data/lib/generators/graphql/type_generator.rb +1 -0
  8. data/lib/graphql.rb +13 -11
  9. data/lib/graphql/backtrace/tracer.rb +2 -2
  10. data/lib/graphql/dataloader.rb +45 -14
  11. data/lib/graphql/execution/errors.rb +109 -11
  12. data/lib/graphql/execution/interpreter.rb +1 -1
  13. data/lib/graphql/execution/interpreter/runtime.rb +17 -24
  14. data/lib/graphql/introspection.rb +1 -1
  15. data/lib/graphql/introspection/directive_type.rb +7 -3
  16. data/lib/graphql/language.rb +1 -0
  17. data/lib/graphql/language/cache.rb +37 -0
  18. data/lib/graphql/language/parser.rb +15 -5
  19. data/lib/graphql/language/parser.y +15 -5
  20. data/lib/graphql/pagination/active_record_relation_connection.rb +7 -0
  21. data/lib/graphql/pagination/connection.rb +15 -1
  22. data/lib/graphql/pagination/connections.rb +2 -1
  23. data/lib/graphql/pagination/relation_connection.rb +12 -1
  24. data/lib/graphql/query.rb +1 -3
  25. data/lib/graphql/query/validation_pipeline.rb +1 -1
  26. data/lib/graphql/railtie.rb +9 -1
  27. data/lib/graphql/relay/range_add.rb +10 -5
  28. data/lib/graphql/schema.rb +32 -45
  29. data/lib/graphql/schema/field/connection_extension.rb +1 -0
  30. data/lib/graphql/schema/input_object.rb +2 -2
  31. data/lib/graphql/schema/member/base_dsl_methods.rb +3 -15
  32. data/lib/graphql/schema/object.rb +19 -5
  33. data/lib/graphql/schema/resolver.rb +28 -1
  34. data/lib/graphql/static_validation/rules/argument_literals_are_compatible.rb +3 -1
  35. data/lib/graphql/static_validation/rules/argument_literals_are_compatible_error.rb +6 -2
  36. data/lib/graphql/static_validation/rules/arguments_are_defined.rb +2 -1
  37. data/lib/graphql/static_validation/rules/arguments_are_defined_error.rb +4 -2
  38. data/lib/graphql/static_validation/rules/directives_are_defined.rb +1 -1
  39. data/lib/graphql/static_validation/rules/fields_will_merge.rb +17 -8
  40. data/lib/graphql/static_validation/rules/variable_usages_are_allowed.rb +2 -2
  41. data/lib/graphql/subscriptions/action_cable_subscriptions.rb +4 -3
  42. data/lib/graphql/subscriptions/broadcast_analyzer.rb +0 -3
  43. data/lib/graphql/subscriptions/serialize.rb +3 -0
  44. data/lib/graphql/tracing/active_support_notifications_tracing.rb +2 -1
  45. data/lib/graphql/types/relay/base_connection.rb +4 -0
  46. data/lib/graphql/types/relay/connection_behaviors.rb +38 -5
  47. data/lib/graphql/types/relay/edge_behaviors.rb +12 -1
  48. data/lib/graphql/version.rb +1 -1
  49. data/readme.md +1 -1
  50. metadata +3 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.4
4
+ version: 1.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips
@@ -414,6 +414,7 @@ files:
414
414
  - lib/graphql/invalid_null_error.rb
415
415
  - lib/graphql/language.rb
416
416
  - lib/graphql/language/block_string.rb
417
+ - lib/graphql/language/cache.rb
417
418
  - lib/graphql/language/definition_slice.rb
418
419
  - lib/graphql/language/document_from_schema_definition.rb
419
420
  - lib/graphql/language/generation.rb