File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/services/schema/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -175,17 +175,23 @@ const createFederation: (
175
175
async ( { schemas, external, native, contracts } ) => {
176
176
const subgraphs = schemas
177
177
. map ( schema => {
178
+ logger . debug ( `Parsing subgraph schema SDL (name=%s)` , schema . source ) ;
178
179
return {
179
180
typeDefs : trimDescriptions ( parse ( schema . raw ) ) ,
180
181
name : schema . source ,
181
182
url : 'url' in schema && typeof schema . url === 'string' ? schema . url : undefined ,
182
183
} ;
183
184
} )
184
185
. map ( subgraph => {
186
+ logger . debug ( `Extracting link implementations from subgraph (name=%s)` , subgraph . name ) ;
185
187
const { matchesImplementation, resolveImportName } = extractLinkImplementations (
186
188
subgraph . typeDefs ,
187
189
) ;
188
190
if ( matchesImplementation ( 'https://specs.graphql-hive.com/hive' , 'v1.0' ) ) {
191
+ logger . debug (
192
+ `Found hive link in subgraph. Applying link logic. (name=%s)` ,
193
+ subgraph . name ,
194
+ ) ;
189
195
// if this subgraph implements the metadata spec
190
196
// then copy metadata from the schema to all fields.
191
197
// @note this is similar to how federation's compose copies join__ directives to fields based on the
You can’t perform that action at this time.
0 commit comments