graphql-query-resolver 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3bb71375c8ecbb3540a521b9f367b80aa7507049
4
+ data.tar.gz: 0da45b1ef9c2b1ddf4f19c58fd60a8585ef17141
5
+ SHA512:
6
+ metadata.gz: 6605a355db772041aac3c393e10a3777ff5d7ce67d10587118bea6c66a04cb03f575a7ccd28cc015fe28a6966e9d94512f89cb7cac7fefef867345127af6b104
7
+ data.tar.gz: 48d8fb3112f1ada739961aad18739464caf8a1fb0a4e73fd3d7b81d966d6dacf463ca1dbdd2e42d984cc5549c21fd6b9956d5c236196c6e3009bc244009b0e95
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .byebug_history
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,12 @@
1
+ appraise "activerecord-3" do
2
+ gem "activerecord", "3.2.14"
3
+ gem "activesupport", "3.2.14"
4
+ end
5
+
6
+ appraise "activerecord-4" do
7
+ gem "activerecord", "4.2.0"
8
+ end
9
+
10
+ appraise "activerecord-5" do
11
+ gem "activerecord", "5.0.0"
12
+ end
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at nettofarah@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in graphql-query-resolver.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 nettofarah
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,80 @@
1
+ # GraphQL::QueryResolver
2
+ GraphQL::QueryResolver is an add-on to [graphql-ruby](https://github.com/rmosologo/graphql-ruby)
3
+ that allows your field resolvers to minimize N+1 SELECTS issued by ActiveRecord.
4
+
5
+ GraphQL::QueryResolver will analyze the AST from incoming GraphQL queries and
6
+ try to match query selections to `ActiveRecord::Reflections` present in your
7
+ `ActiveRecord` models.
8
+
9
+ Every matched selection will be then passed on to
10
+ `ActiveRecord::Associations::Preloader.new` so your queries now only issue
11
+ one `SELECT` statement for every level of the GraphQL AST.
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'graphql-query-resolver'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install graphql-query-resolver
28
+
29
+ ## Usage
30
+ ```ruby
31
+ require 'graphql/query_resolver'
32
+
33
+ # In your field resolver
34
+ # Assuming `Project < ActiveRecord::Base` and a `ProjectType` GraphQL type:
35
+ #
36
+ field :projects do
37
+ type types[ProjectType]
38
+
39
+ resolve -> (obj, args, ctx) {
40
+ # Wrap your field resolve operation with `GraphQL::QueryResolver`
41
+ GraphQL::QueryResolver.run(Project, ctx, ProjectType) do
42
+ Project.all
43
+ end
44
+ }
45
+ end
46
+
47
+ # QueryResolver works the same way for single objects
48
+
49
+ field :comment do
50
+ type CommentType
51
+ argument :id, !types.ID
52
+
53
+ resolve -> (obj, args, ctx) {
54
+ GraphQL::QueryResolver.run(Comment, ctx, CommentType) do
55
+ Comment.find(args['id'])
56
+ end
57
+ }
58
+ end
59
+ ```
60
+
61
+ ## Development
62
+
63
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
64
+
65
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
66
+
67
+ ## Contributing
68
+
69
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/graphql-query-resolver. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
70
+
71
+ To run the specs across all supported versions of ActiveRecord, check out the repo and follow these steps:
72
+ ```bash
73
+ $ bundle install
74
+ $ bundle exec appraisal install
75
+ $ bundle exec appraisal rake
76
+ ```
77
+
78
+ ## License
79
+
80
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "graphql/activerecord"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "3.2.14"
6
+ gem "activesupport", "3.2.14"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,65 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ graphql-query-resolver (0.1.0)
5
+ graphql (~> 1.0.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (3.2.14)
11
+ activesupport (= 3.2.14)
12
+ builder (~> 3.0.0)
13
+ activerecord (3.2.14)
14
+ activemodel (= 3.2.14)
15
+ activesupport (= 3.2.14)
16
+ arel (~> 3.0.2)
17
+ tzinfo (~> 0.3.29)
18
+ activesupport (3.2.14)
19
+ i18n (~> 0.6, >= 0.6.4)
20
+ multi_json (~> 1.0)
21
+ appraisal (2.1.0)
22
+ bundler
23
+ rake
24
+ thor (>= 0.14.0)
25
+ arel (3.0.3)
26
+ builder (3.0.4)
27
+ byebug (9.0.6)
28
+ diff-lcs (1.3)
29
+ graphql (1.0.0)
30
+ i18n (0.8.1)
31
+ multi_json (1.12.1)
32
+ rake (10.5.0)
33
+ rspec (3.5.0)
34
+ rspec-core (~> 3.5.0)
35
+ rspec-expectations (~> 3.5.0)
36
+ rspec-mocks (~> 3.5.0)
37
+ rspec-core (3.5.4)
38
+ rspec-support (~> 3.5.0)
39
+ rspec-expectations (3.5.0)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.5.0)
42
+ rspec-mocks (3.5.0)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.5.0)
45
+ rspec-support (3.5.0)
46
+ sqlite3 (1.3.13)
47
+ thor (0.19.4)
48
+ tzinfo (0.3.52)
49
+
50
+ PLATFORMS
51
+ ruby
52
+
53
+ DEPENDENCIES
54
+ activerecord (= 3.2.14)
55
+ activesupport (= 3.2.14)
56
+ appraisal (~> 2.1.0, >= 2.1.0)
57
+ bundler (~> 1.11)
58
+ byebug (~> 9.0.6, >= 9.0.6)
59
+ graphql-query-resolver!
60
+ rake (~> 10.0)
61
+ rspec (~> 3.0)
62
+ sqlite3 (~> 1.3, >= 1.3.12)
63
+
64
+ BUNDLED WITH
65
+ 1.13.7
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.2.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,69 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ graphql-query-resolver (0.1.0)
5
+ graphql (~> 1.0.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (4.2.0)
11
+ activesupport (= 4.2.0)
12
+ builder (~> 3.1)
13
+ activerecord (4.2.0)
14
+ activemodel (= 4.2.0)
15
+ activesupport (= 4.2.0)
16
+ arel (~> 6.0)
17
+ activesupport (4.2.0)
18
+ i18n (~> 0.7)
19
+ json (~> 1.7, >= 1.7.7)
20
+ minitest (~> 5.1)
21
+ thread_safe (~> 0.3, >= 0.3.4)
22
+ tzinfo (~> 1.1)
23
+ appraisal (2.1.0)
24
+ bundler
25
+ rake
26
+ thor (>= 0.14.0)
27
+ arel (6.0.4)
28
+ builder (3.2.3)
29
+ byebug (9.0.6)
30
+ diff-lcs (1.3)
31
+ graphql (1.0.0)
32
+ i18n (0.8.1)
33
+ json (1.8.6)
34
+ minitest (5.10.1)
35
+ rake (10.5.0)
36
+ rspec (3.5.0)
37
+ rspec-core (~> 3.5.0)
38
+ rspec-expectations (~> 3.5.0)
39
+ rspec-mocks (~> 3.5.0)
40
+ rspec-core (3.5.4)
41
+ rspec-support (~> 3.5.0)
42
+ rspec-expectations (3.5.0)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.5.0)
45
+ rspec-mocks (3.5.0)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.5.0)
48
+ rspec-support (3.5.0)
49
+ sqlite3 (1.3.13)
50
+ thor (0.19.4)
51
+ thread_safe (0.3.6)
52
+ tzinfo (1.2.2)
53
+ thread_safe (~> 0.1)
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ activerecord (= 4.2.0)
60
+ appraisal (~> 2.1.0, >= 2.1.0)
61
+ bundler (~> 1.11)
62
+ byebug (~> 9.0.6, >= 9.0.6)
63
+ graphql-query-resolver!
64
+ rake (~> 10.0)
65
+ rspec (~> 3.0)
66
+ sqlite3 (~> 1.3, >= 1.3.12)
67
+
68
+ BUNDLED WITH
69
+ 1.13.7
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "5.0.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,66 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ graphql-query-resolver (0.1.0)
5
+ graphql (~> 1.0.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.0.0)
11
+ activesupport (= 5.0.0)
12
+ activerecord (5.0.0)
13
+ activemodel (= 5.0.0)
14
+ activesupport (= 5.0.0)
15
+ arel (~> 7.0)
16
+ activesupport (5.0.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (~> 0.7)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ appraisal (2.1.0)
22
+ bundler
23
+ rake
24
+ thor (>= 0.14.0)
25
+ arel (7.1.4)
26
+ byebug (9.0.6)
27
+ concurrent-ruby (1.0.5)
28
+ diff-lcs (1.3)
29
+ graphql (1.0.0)
30
+ i18n (0.8.1)
31
+ minitest (5.10.1)
32
+ rake (10.5.0)
33
+ rspec (3.5.0)
34
+ rspec-core (~> 3.5.0)
35
+ rspec-expectations (~> 3.5.0)
36
+ rspec-mocks (~> 3.5.0)
37
+ rspec-core (3.5.4)
38
+ rspec-support (~> 3.5.0)
39
+ rspec-expectations (3.5.0)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.5.0)
42
+ rspec-mocks (3.5.0)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.5.0)
45
+ rspec-support (3.5.0)
46
+ sqlite3 (1.3.13)
47
+ thor (0.19.4)
48
+ thread_safe (0.3.6)
49
+ tzinfo (1.2.2)
50
+ thread_safe (~> 0.1)
51
+
52
+ PLATFORMS
53
+ ruby
54
+
55
+ DEPENDENCIES
56
+ activerecord (= 5.0.0)
57
+ appraisal (~> 2.1.0, >= 2.1.0)
58
+ bundler (~> 1.11)
59
+ byebug (~> 9.0.6, >= 9.0.6)
60
+ graphql-query-resolver!
61
+ rake (~> 10.0)
62
+ rspec (~> 3.0)
63
+ sqlite3 (~> 1.3, >= 1.3.12)
64
+
65
+ BUNDLED WITH
66
+ 1.13.7
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'graphql/query_resolver/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "graphql-query-resolver"
8
+ spec.version = GraphQL::QueryResolver::VERSION
9
+ spec.authors = ["nettofarah"]
10
+ spec.email = ["nettofarah@gmail.com"]
11
+
12
+ spec.summary = %q{Minimized N+1 queries generated by GraphQL}
13
+ spec.description = %q{GraphQL::QueryResolver is an add-on to graphql-ruby that allows your field resolvers to minimize N+1 SELECTS issued by ActiveRecord. }
14
+ spec.homepage = "https://github.com/nettofarah"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_runtime_dependency "graphql", "~> 1.0.0"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.11"
25
+ spec.add_development_dependency "sqlite3", "~> 1.3", ">= 1.3.12"
26
+ spec.add_development_dependency "appraisal", "~> 2.1.0", ">= 2.1.0"
27
+ spec.add_development_dependency "byebug", "~> 9.0.6", ">= 9.0.6"
28
+ spec.add_development_dependency "activerecord", "~> 5.0"
29
+
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+ end
@@ -0,0 +1,47 @@
1
+ require "graphql"
2
+ require "graphql/query_resolver/version"
3
+
4
+ module GraphQL
5
+ module QueryResolver
6
+
7
+ def self.run(model_class, context, return_type)
8
+ to_load = yield
9
+ dependencies = {}
10
+
11
+ reflection_dependencies = map_dependencies(model_class, context.ast_node)
12
+ dependencies = reflection_dependencies.merge(dependencies)
13
+
14
+ if dependencies.any? && to_load.present?
15
+ if ActiveRecord::VERSION::MAJOR < 4
16
+ ActiveRecord::Associations::Preloader.new(to_load, dependencies).run
17
+ else
18
+ ActiveRecord::Associations::Preloader.new.preload(to_load, dependencies)
19
+ end
20
+ end
21
+
22
+ to_load
23
+ end
24
+
25
+ def self.map_dependencies(class_name, ast_node)
26
+ dependencies = {}
27
+ ast_node.selections.each do |selection|
28
+ name = selection.name
29
+
30
+ if class_name.reflections.with_indifferent_access[selection.name].present?
31
+ begin
32
+ current_class_name = selection.name.singularize.classify.constantize
33
+ dependencies[name] = map_dependencies(current_class_name, selection)
34
+ rescue NameError
35
+ selection_name = class_name.reflections.with_indifferent_access[selection.name].options[:class_name]
36
+ current_class_name = selection_name.singularize.classify.constantize
37
+ dependencies[selection.name.to_sym] = map_dependencies(current_class_name, selection)
38
+
39
+ next
40
+ end
41
+ end
42
+ end
43
+
44
+ dependencies
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,5 @@
1
+ module GraphQL
2
+ module QueryResolver
3
+ VERSION = "0.1.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: graphql-query-resolver
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - nettofarah
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: graphql
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 1.3.12
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '1.3'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 1.3.12
61
+ - !ruby/object:Gem::Dependency
62
+ name: appraisal
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 2.1.0
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 2.1.0
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: 2.1.0
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 2.1.0
81
+ - !ruby/object:Gem::Dependency
82
+ name: byebug
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: 9.0.6
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 9.0.6
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 9.0.6
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 9.0.6
101
+ - !ruby/object:Gem::Dependency
102
+ name: activerecord
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '5.0'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '5.0'
115
+ - !ruby/object:Gem::Dependency
116
+ name: rake
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '10.0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '10.0'
129
+ - !ruby/object:Gem::Dependency
130
+ name: rspec
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '3.0'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '3.0'
143
+ description: 'GraphQL::QueryResolver is an add-on to graphql-ruby that allows your
144
+ field resolvers to minimize N+1 SELECTS issued by ActiveRecord. '
145
+ email:
146
+ - nettofarah@gmail.com
147
+ executables: []
148
+ extensions: []
149
+ extra_rdoc_files: []
150
+ files:
151
+ - ".gitignore"
152
+ - ".rspec"
153
+ - ".travis.yml"
154
+ - Appraisals
155
+ - CODE_OF_CONDUCT.md
156
+ - Gemfile
157
+ - LICENSE.txt
158
+ - README.md
159
+ - Rakefile
160
+ - bin/console
161
+ - bin/setup
162
+ - gemfiles/activerecord_3.gemfile
163
+ - gemfiles/activerecord_3.gemfile.lock
164
+ - gemfiles/activerecord_4.gemfile
165
+ - gemfiles/activerecord_4.gemfile.lock
166
+ - gemfiles/activerecord_5.gemfile
167
+ - gemfiles/activerecord_5.gemfile.lock
168
+ - graphql-query-resolver.gemspec
169
+ - lib/graphql/query_resolver.rb
170
+ - lib/graphql/query_resolver/version.rb
171
+ homepage: https://github.com/nettofarah
172
+ licenses:
173
+ - MIT
174
+ metadata: {}
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements: []
190
+ rubyforge_project:
191
+ rubygems_version: 2.4.8
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: Minimized N+1 queries generated by GraphQL
195
+ test_files: []