zeitwerk: Api -> API
This commit is contained in:
parent
482f990594
commit
150ddab660
82 changed files with 235 additions and 217 deletions
|
@ -1,4 +1,4 @@
|
|||
class Api::V2::Context < GraphQL::Query::Context
|
||||
class API::V2::Context < GraphQL::Query::Context
|
||||
def has_fragment?(name)
|
||||
if self["has_fragment_#{name}"]
|
||||
true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Api::V2::Schema < GraphQL::Schema
|
||||
class API::V2::Schema < GraphQL::Schema
|
||||
default_max_page_size 100
|
||||
max_complexity 300
|
||||
max_depth 15
|
||||
|
@ -6,7 +6,7 @@ class Api::V2::Schema < GraphQL::Schema
|
|||
query Types::QueryType
|
||||
mutation Types::MutationType
|
||||
|
||||
context_class Api::V2::Context
|
||||
context_class API::V2::Context
|
||||
|
||||
def self.id_from_object(object, type_definition, ctx)
|
||||
object.to_typed_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue