File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
packages/mercurius/tests/e2e Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,17 @@ describe('Code-first - Federation', () => {
60
60
61
61
expect ( response . data ) . toEqual ( {
62
62
_service : {
63
- sdl : `type Post @key(fields: "id") {
63
+ sdl : `directive @shareable on FIELD_DEFINITION | OBJECT
64
+
65
+ directive @link(url: String!, import: [link__Import]) on SCHEMA
66
+
67
+ directive @inaccessible on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
68
+
69
+ directive @override(from: String!) on FIELD_DEFINITION
70
+
71
+ type Post
72
+ @key(fields: \"id\")
73
+ {
64
74
id: ID!
65
75
title: String!
66
76
authorId: Int!
@@ -69,17 +79,21 @@ describe('Code-first - Federation', () => {
69
79
type Query @extends {
70
80
findPost(id: Float!): Post!
71
81
getPosts: [Post!]!
72
- search: [FederationSearchResultUnion!]! @deprecated(reason: "test")
82
+ search: [FederationSearchResultUnion!]! @deprecated(reason: \ "test\ ")
73
83
}
74
84
75
- "" "Search result description"" "
85
+ \"\"\ "Search result description\"\"\ "
76
86
union FederationSearchResultUnion = Post | User
77
87
78
- type User @key(fields: "id") @extends {
88
+ type User
89
+ @key(fields: \"id\")
90
+ @extends
91
+ {
79
92
id: ID! @external
80
93
posts: [Post!]!
81
94
}
82
- ` ,
95
+
96
+ scalar link__Import` ,
83
97
} ,
84
98
} ) ;
85
99
} ) ;
You can’t perform that action at this time.
0 commit comments