@@ -49,29 +49,30 @@ index 4a5ef1e..5c16c2b 100644
4949
5050```
5151
52- Finally, update ` Rakefile ` so that ` ElasticGraph::GraphQL:: Apollo::SchemaDefinition::APIExtension ` is
53- used as one of the ` extension_modules ` :
52+ Finally, update ` Rakefile ` so that ` ElasticGraph::Apollo::SchemaDefinition::APIExtension ` is
53+ used as one of the ` schema_definition_extension_modules ` :
5454
5555``` diff
5656diff --git a/Rakefile b/Rakefile
5757index 2943335..26633c3 100644
5858--- a/Rakefile
5959+++ b/Rakefile
60- @@ -1,5 +1,6 @@
60+ @@ -1,6 +1,7 @@
6161 project_root = File.expand_path(__dir__)
6262
6363+ require "elastic_graph/apollo/schema_definition/api_extension"
64+ require "elastic_graph/json_ingestion/schema_definition/api_extension"
6465 require "elastic_graph/local/rake_tasks"
6566 require "elastic_graph/query_registry/rake_tasks"
6667 require "rspec/core/rake_task"
67- @@ -12,5 +13,7 @@ ElasticGraph::Local::RakeTasks.new(
68- local_config_yaml: settings_file,
69- path_to_schema: "#{project_root}/config/schema.rb"
70- ) do |tasks|
71- + tasks.schema_definition_extension_modules << ElasticGraph::Apollo::SchemaDefinition::APIExtension
72- +
68+ @@ -16,5 +17,6 @@ ElasticGraph::Local::RakeTasks.new(
7369 # Determines casing of field names. Can be either `:camelCase` or `:snake_case`.
7470 tasks.schema_element_name_form = :camelCase
71+ tasks.schema_definition_extension_modules << ElasticGraph::JSONIngestion::SchemaDefinition::APIExtension
72+ -
73+ + tasks.schema_definition_extension_modules << ElasticGraph::Apollo::SchemaDefinition::APIExtension
74+ +
75+ # Customizes the names of fields generated by ElasticGraph.
7576```
7677
7778That's it!
0 commit comments