@@ -19,10 +19,8 @@ class QueryType < Types::BaseObject
1919 field :current_user , Types ::UserType , null : true , description : 'Get the currently logged in user'
2020 # rubocop:enable GraphQL/ExtractType
2121
22- field :application_settings , Types ::ApplicationSettingsType , null : true ,
23- description : 'Get global application settings'
24-
25- field :metadata , Types ::MetadataType , null : false , description : 'Get application metadata'
22+ field :application , Types ::ApplicationType , null : false ,
23+ description : 'Get application information'
2624
2725 field :echo , GraphQL ::Types ::String , null : false , description : 'Field available for use to test API access' do
2826 argument :message , GraphQL ::Types ::String , required : true , description : 'String to echo as response'
@@ -67,14 +65,13 @@ def nodes(ids:)
6765 ids . map { |id | context . schema . object_from_id ( id , context ) }
6866 end
6967
70- def application_settings
71- ApplicationSetting . current
72- end
73-
74- def metadata
68+ def application
7569 {
76- version : Sagittarius ::Version ,
77- extensions : Sagittarius ::Extensions . active . map ( &:to_s ) ,
70+ settings : ApplicationSetting . current ,
71+ metadata : {
72+ version : Sagittarius ::Version ,
73+ extensions : Sagittarius ::Extensions . active . map ( &:to_s ) ,
74+ } ,
7875 }
7976 end
8077
0 commit comments