decidim-api 0.27.8 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/decidim/api/queries_controller.rb +3 -3
- data/app/packs/entrypoints/decidim_api_docs.scss +312 -312
- data/app/packs/entrypoints/decidim_api_graphiql.js +3 -0
- data/app/packs/entrypoints/decidim_api_graphiql.scss +1 -3
- data/app/views/decidim/api/documentation/graphql_docs_template.html.erb +1 -1
- data/docs/usage.md +41 -45
- data/lib/decidim/api/engine.rb +5 -5
- data/lib/decidim/api/test/type_context.rb +4 -4
- data/lib/decidim/api/version.rb +1 -1
- data/lib/tasks/decidim_api_docs.rake +1 -1
- metadata +49 -31
- data/decidim-api.gemspec +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db1dc6b79027576e9a82a052d3281b6cfaa538943743730049f59f77e2dbc343
|
4
|
+
data.tar.gz: 43a3617391fe5ef6bb2704725b2ed7dc3a5756ff5dda27ec60961956270a3006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdab41312d388c434b954164a62cbe2b269d9c81fadca02f4f6d8c4ebe0800f3a22fd4d108e429dbe2a46f74fd9aa8a6fa8ada01cf62f54b63b66b80af1072d7
|
7
|
+
data.tar.gz: '088673741a96c0fe7a5f16f5b3304e004ee80a116906d76676a53f81c9bcaa1959fa078f2c81cd61815aa34833819e2cc62b2fb6d3154993e46eeaa970184f18'
|
@@ -9,7 +9,7 @@ module Decidim
|
|
9
9
|
variables = prepare_variables(params[:variables])
|
10
10
|
query = params[:query]
|
11
11
|
operation_name = params[:operationName]
|
12
|
-
result = Schema.execute(query, variables
|
12
|
+
result = Schema.execute(query, variables:, context:, operation_name:)
|
13
13
|
render json: result
|
14
14
|
rescue StandardError => e
|
15
15
|
logger.error e.message
|
@@ -28,8 +28,8 @@ module Decidim
|
|
28
28
|
|
29
29
|
def context
|
30
30
|
{
|
31
|
-
current_organization
|
32
|
-
current_user:
|
31
|
+
current_organization:,
|
32
|
+
current_user:
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|