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 @@ -1389,15 +1389,15 @@ class GraphQLInputObjectType(GraphQLNamedType):
1389
1389
1390
1390
Example::
1391
1391
1392
- NonNullFloat = GraphQLNonNull(GraphQLFloat() )
1392
+ NonNullFloat = GraphQLNonNull(GraphQLFloat)
1393
1393
1394
1394
class GeoPoint(GraphQLInputObjectType):
1395
1395
name = 'GeoPoint'
1396
1396
fields = {
1397
1397
'lat': GraphQLInputField(NonNullFloat),
1398
1398
'lon': GraphQLInputField(NonNullFloat),
1399
1399
'alt': GraphQLInputField(
1400
- GraphQLFloat() , default_value=0)
1400
+ GraphQLFloat, default_value=0)
1401
1401
}
1402
1402
1403
1403
The outbound values will be Python dictionaries by default, but you can have them
@@ -1651,7 +1651,7 @@ class GraphQLNonNull(GraphQLWrappingType[GNT], Generic[GNT]):
1651
1651
class RowType(GraphQLObjectType):
1652
1652
name = 'Row'
1653
1653
fields = {
1654
- 'id': GraphQLField(GraphQLNonNull(GraphQLString() ))
1654
+ 'id': GraphQLField(GraphQLNonNull(GraphQLString))
1655
1655
}
1656
1656
1657
1657
Note: the enforcement of non-nullability occurs within the executor.
You can’t perform that action at this time.
0 commit comments