Class: AtlasEngine::Schema
- Inherits:
-
GraphQL::Schema
- Object
- GraphQL::Schema
- AtlasEngine::Schema
show all
- Extended by:
- LogHelper
- Defined in:
- app/graphql/atlas_engine/schema.rb
Class Method Summary
collapse
Methods included from LogHelper
log_error, log_info, log_warn
Class Method Details
.dump ⇒ Object
10
11
12
13
14
15
|
# File 'app/graphql/atlas_engine/schema.rb', line 10
def dump
schema_path = Pathname.new(__dir__).join("schema.graphql")
schema_path.write(to_definition)
log_info("Updated GraphQL schema dump: #{schema_path}")
true
end
|
.refresh ⇒ Object
17
18
19
20
|
# File 'app/graphql/atlas_engine/schema.rb', line 17
def refresh
log_info("Refreshed GraphQL schema types.")
true
end
|