graphql 1.9.0.pre3 → 1.9.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/analysis/ast/visitor.rb +5 -0
- data/lib/graphql/execution/interpreter/hash_response.rb +1 -1
- data/lib/graphql/execution/interpreter/resolve.rb +2 -0
- data/lib/graphql/execution/interpreter/runtime.rb +11 -2
- data/lib/graphql/execution/lookahead.rb +1 -1
- data/lib/graphql/internal_representation/rewrite.rb +5 -5
- data/lib/graphql/language/parser.rb +1 -1
- data/lib/graphql/language/parser.y +1 -1
- data/lib/graphql/language/printer.rb +1 -1
- data/lib/graphql/language/visitor.rb +1 -1
- data/lib/graphql/query.rb +1 -1
- data/lib/graphql/query/arguments.rb +1 -1
- data/lib/graphql/query/arguments_cache.rb +1 -1
- data/lib/graphql/query/validation_pipeline.rb +3 -3
- data/lib/graphql/schema.rb +1 -1
- data/lib/graphql/schema/field.rb +25 -11
- data/lib/graphql/schema/field/connection_extension.rb +1 -1
- data/lib/graphql/schema/field_extension.rb +11 -3
- data/lib/graphql/schema/mutation.rb +1 -1
- data/lib/graphql/static_validation/base_visitor.rb +1 -1
- data/lib/graphql/static_validation/definition_dependencies.rb +3 -3
- data/lib/graphql/static_validation/literal_validator.rb +1 -1
- data/lib/graphql/static_validation/rules/argument_literals_are_compatible.rb +1 -1
- data/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb +1 -1
- data/lib/graphql/static_validation/rules/fields_will_merge.rb +1 -1
- data/lib/graphql/static_validation/validator.rb +1 -1
- data/lib/graphql/types/relay/node_field.rb +15 -0
- data/lib/graphql/types/relay/nodes_field.rb +17 -1
- data/lib/graphql/version.rb +1 -1
- data/spec/graphql/analysis/ast_spec.rb +12 -0
- data/spec/graphql/execution/interpreter_spec.rb +83 -0
- data/spec/graphql/schema/field_extension_spec.rb +26 -4
- data/spec/graphql/static_validation/rules/argument_literals_are_compatible_spec.rb +3 -3
- data/spec/integration/rails/graphql/relay/mutation_spec.rb +48 -0
- data/spec/integration/tmp/app/graphql/types/family_type.rb +9 -0
- metadata +4 -98
- data/spec/integration/tmp/app/graphql/types/bird_type.rb +0 -7
- data/spec/integration/tmp/dummy/Gemfile +0 -45
- data/spec/integration/tmp/dummy/README.rdoc +0 -28
- data/spec/integration/tmp/dummy/Rakefile +0 -6
- data/spec/integration/tmp/dummy/app/assets/javascripts/application.js +0 -16
- data/spec/integration/tmp/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/integration/tmp/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/integration/tmp/dummy/app/controllers/graphql_controller.rb +0 -43
- data/spec/integration/tmp/dummy/app/graphql/dummy_schema.rb +0 -34
- data/spec/integration/tmp/dummy/app/graphql/types/base_enum.rb +0 -4
- data/spec/integration/tmp/dummy/app/graphql/types/base_input_object.rb +0 -4
- data/spec/integration/tmp/dummy/app/graphql/types/base_interface.rb +0 -5
- data/spec/integration/tmp/dummy/app/graphql/types/base_object.rb +0 -4
- data/spec/integration/tmp/dummy/app/graphql/types/base_scalar.rb +0 -4
- data/spec/integration/tmp/dummy/app/graphql/types/base_union.rb +0 -4
- data/spec/integration/tmp/dummy/app/graphql/types/mutation_type.rb +0 -10
- data/spec/integration/tmp/dummy/app/graphql/types/query_type.rb +0 -15
- data/spec/integration/tmp/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/integration/tmp/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/integration/tmp/dummy/bin/bundle +0 -3
- data/spec/integration/tmp/dummy/bin/rails +0 -4
- data/spec/integration/tmp/dummy/bin/rake +0 -4
- data/spec/integration/tmp/dummy/bin/setup +0 -29
- data/spec/integration/tmp/dummy/config.ru +0 -4
- data/spec/integration/tmp/dummy/config/application.rb +0 -32
- data/spec/integration/tmp/dummy/config/boot.rb +0 -3
- data/spec/integration/tmp/dummy/config/environment.rb +0 -5
- data/spec/integration/tmp/dummy/config/environments/development.rb +0 -38
- data/spec/integration/tmp/dummy/config/environments/production.rb +0 -76
- data/spec/integration/tmp/dummy/config/environments/test.rb +0 -42
- data/spec/integration/tmp/dummy/config/initializers/assets.rb +0 -11
- data/spec/integration/tmp/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/integration/tmp/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/integration/tmp/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/integration/tmp/dummy/config/initializers/inflections.rb +0 -16
- data/spec/integration/tmp/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/integration/tmp/dummy/config/initializers/session_store.rb +0 -3
- data/spec/integration/tmp/dummy/config/initializers/to_time_preserves_timezone.rb +0 -10
- data/spec/integration/tmp/dummy/config/initializers/wrap_parameters.rb +0 -9
- data/spec/integration/tmp/dummy/config/locales/en.yml +0 -23
- data/spec/integration/tmp/dummy/config/routes.rb +0 -61
- data/spec/integration/tmp/dummy/config/secrets.yml +0 -22
- data/spec/integration/tmp/dummy/db/seeds.rb +0 -7
- data/spec/integration/tmp/dummy/public/404.html +0 -67
- data/spec/integration/tmp/dummy/public/422.html +0 -67
- data/spec/integration/tmp/dummy/public/500.html +0 -66
- data/spec/integration/tmp/dummy/public/favicon.ico +0 -0
- data/spec/integration/tmp/dummy/public/robots.txt +0 -5
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|