@@ -175,6 +175,11 @@ const publishMutationDocument =
175
175
async function federation ( ) {
176
176
const instance = createInstance ( null ) ;
177
177
const schemaInventory = /* GraphQL */ `
178
+ extend schema
179
+ @link(
180
+ url: "https://specs.apollo.dev/federation/v2.3"
181
+ import: ["@key", "@shareable", "@external", "@requires"]
182
+ )
178
183
type Product implements ProductItf @key(fields: "id") {
179
184
id: ID!
180
185
dimensions: ProductDimension @external
@@ -205,6 +210,7 @@ async function federation() {
205
210
` ;
206
211
207
212
const schemaPandas = /* GraphQL */ `
213
+ extend schema @link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@tag"])
208
214
directive @tag(name: String!) repeatable on FIELD_DEFINITION
209
215
210
216
type Query {
@@ -219,6 +225,11 @@ async function federation() {
219
225
` ;
220
226
221
227
const schemaProducts = /* GraphQL */ `
228
+ extend schema
229
+ @link(
230
+ url: "https://specs.apollo.dev/federation/v2.3"
231
+ import: ["@key", "@shareable", "@inaccessible", "@tag"]
232
+ )
222
233
directive @myDirective(a: String!) on FIELD_DEFINITION
223
234
directive @hello on FIELD_DEFINITION
224
235
@@ -277,6 +288,12 @@ async function federation() {
277
288
` ;
278
289
279
290
const schemaReviews = /* GraphQL */ `
291
+ extend schema
292
+ @link(
293
+ url: "https://specs.apollo.dev/federation/v2.3"
294
+ import: ["@key", "@shareable", "@override"]
295
+ )
296
+
280
297
type Product implements ProductItf @key(fields: "id") {
281
298
id: ID!
282
299
reviewsCount: Int!
@@ -302,12 +319,14 @@ async function federation() {
302
319
` ;
303
320
304
321
const schemaUsers = /* GraphQL */ `
322
+ extend schema
323
+ @link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@key", "@tag", "@shareable"])
305
324
directive @tag(name: String!) repeatable on FIELD_DEFINITION | OBJECT
306
325
307
326
type User @key(fields: "email") {
308
327
email: ID! @tag(name: "test-from-users")
309
328
name: String
310
- totalProductsCreated: Int
329
+ totalProductsCreated: Int @shareable
311
330
createdAt: DateTime
312
331
}
313
332
0 commit comments