[graphql] fine tune config to avoid timeout error

This commit is contained in:
Christophe Robillard 2022-06-17 11:56:08 +02:00
parent 886f595350
commit 49a77ddffe
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ class API::V2::Schema < GraphQL::Schema
use GraphQL::Execution::Interpreter
use GraphQL::Analysis::AST
use GraphQL::Schema::Timeout, max_seconds: 10
use GraphQL::Schema::Timeout, max_seconds: 30
use GraphQL::Batch
use GraphQL::Backtrace

View file

@ -14,7 +14,7 @@ module Types
argument :number, Int, "Numéro du groupe instructeur.", required: true
end
field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false, require_admin: true
field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false, require_admin: true, max_page_size: 30
def demarches_publiques
Procedure.publiques