2022-11-15 10:02:30 +01:00
|
|
|
class GraphqlController < ApplicationController
|
|
|
|
def playground
|
2024-04-23 09:53:32 +02:00
|
|
|
procedure = current_administrateur&.procedures&.last
|
2022-11-15 10:02:30 +01:00
|
|
|
gon.default_variables = {
|
2024-04-23 09:53:32 +02:00
|
|
|
"demarcheNumber": procedure&.id || 42,
|
2022-11-15 10:02:30 +01:00
|
|
|
"includeDossiers": true
|
2022-11-24 11:09:16 +01:00
|
|
|
}.compact.to_json
|
2024-04-23 09:53:32 +02:00
|
|
|
gon.default_query = API::V2::StoredQuery.get('ds-query-v2')
|
2022-11-15 10:02:30 +01:00
|
|
|
|
|
|
|
render :playground, layout: false
|
|
|
|
end
|
|
|
|
end
|