File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1284,15 +1284,15 @@ class GraphQLInputObjectType(GraphQLNamedType):
1284
1284
1285
1285
Example::
1286
1286
1287
- NonNullFloat = GraphQLNonNull(GraphQLFloat() )
1287
+ NonNullFloat = GraphQLNonNull(GraphQLFloat)
1288
1288
1289
1289
class GeoPoint(GraphQLInputObjectType):
1290
1290
name = 'GeoPoint'
1291
1291
fields = {
1292
1292
'lat': GraphQLInputField(NonNullFloat),
1293
1293
'lon': GraphQLInputField(NonNullFloat),
1294
1294
'alt': GraphQLInputField(
1295
- GraphQLFloat() , default_value=0)
1295
+ GraphQLFloat, default_value=0)
1296
1296
}
1297
1297
1298
1298
The outbound values will be Python dictionaries by default, but you can have them
@@ -1511,7 +1511,7 @@ class GraphQLNonNull(GraphQLWrappingType[GNT_co]):
1511
1511
class RowType(GraphQLObjectType):
1512
1512
name = 'Row'
1513
1513
fields = {
1514
- 'id': GraphQLField(GraphQLNonNull(GraphQLString() ))
1514
+ 'id': GraphQLField(GraphQLNonNull(GraphQLString))
1515
1515
}
1516
1516
1517
1517
Note: the enforcement of non-nullability occurs within the executor.
You can’t perform that action at this time.
0 commit comments