@@ -31,15 +31,15 @@ class ChatQuery(ObjectType):
3131
3232 chat_schema = build_schema (query = ChatQuery )
3333 assert (
34- str (chat_schema ).strip (). strip ()
34+ str (chat_schema ).strip ()
3535 == """schema {
3636 query: ChatQuery
3737}
3838
3939type ChatQuery {
4040 message(id: ID!): ChatMessage
41- _entities(representations: [_Any] ): [_Entity]
42- _service: _Service
41+ _entities(representations: [_Any!]! ): [_Entity]!
42+ _service: _Service!
4343}
4444
4545type ChatMessage {
@@ -57,7 +57,6 @@ class ChatQuery(ObjectType):
5757
5858union _Entity = ChatUser
5959
60- \" \" \" Anything\" \" \"
6160scalar _Any
6261
6362type _Service {
@@ -117,8 +116,8 @@ class Query(ObjectType):
117116 str (schema ).strip ()
118117 == """type Query {
119118 camel: Camel
120- _entities(representations: [_Any] ): [_Entity]
121- _service: _Service
119+ _entities(representations: [_Any!]! ): [_Entity]!
120+ _service: _Service!
122121}
123122
124123type Camel {
@@ -130,7 +129,6 @@ class Query(ObjectType):
130129
131130union _Entity = Camel
132131
133- \" \" \" Anything\" \" \"
134132scalar _Any
135133
136134type _Service {
@@ -184,8 +182,8 @@ class Query(ObjectType):
184182 str (schema ).strip ()
185183 == """type Query {
186184 camel: Camel
187- _entities(representations: [_Any] ): [_Entity]
188- _service: _Service
185+ _entities(representations: [_Any!]! ): [_Entity]!
186+ _service: _Service!
189187}
190188
191189type Camel {
@@ -197,7 +195,6 @@ class Query(ObjectType):
197195
198196union _Entity = Camel
199197
200- \" \" \" Anything\" \" \"
201198scalar _Any
202199
203200type _Service {
@@ -254,8 +251,8 @@ class Query(ObjectType):
254251 str (schema ).strip ()
255252 == """type Query {
256253 a: A
257- _entities(representations: [_Any] ): [_Entity]
258- _service: _Service
254+ _entities(representations: [_Any!]! ): [_Entity]!
255+ _service: _Service!
259256}
260257
261258type A {
@@ -269,7 +266,6 @@ class Query(ObjectType):
269266
270267union _Entity = A | B
271268
272- \" \" \" Anything\" \" \"
273269scalar _Any
274270
275271type _Service {
@@ -329,8 +325,8 @@ class Query(ObjectType):
329325 str (schema ).strip ()
330326 == """type Query {
331327 a: Banana
332- _entities(representations: [_Any] ): [_Entity]
333- _service: _Service
328+ _entities(representations: [_Any!]! ): [_Entity]!
329+ _service: _Service!
334330}
335331
336332type Banana {
@@ -344,7 +340,6 @@ class Query(ObjectType):
344340
345341union _Entity = Banana | Potato
346342
347- \" \" \" Anything\" \" \"
348343scalar _Any
349344
350345type _Service {
0 commit comments