File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 83
83
fields = lambda : {
84
84
# Note: The fields onOperation, onFragment and onField are deprecated
85
85
"name" : GraphQLField (
86
- GraphQLNonNull (GraphQLString ), resolve = lambda obj , _info : obj .name
86
+ GraphQLNonNull (GraphQLString ),
87
+ resolve = lambda directive , _info : directive .name ,
87
88
),
88
89
"description" : GraphQLField (
89
- GraphQLString , resolve = lambda obj , _info : obj .description
90
+ GraphQLString , resolve = lambda directive , _info : directive .description
90
91
),
91
92
"isRepeatable" : GraphQLField (
92
93
GraphQLNonNull (GraphQLBoolean ),
93
- resolve = lambda obj , _info : obj .is_repeatable ,
94
+ resolve = lambda directive , _info : directive .is_repeatable ,
94
95
),
95
96
"locations" : GraphQLField (
96
97
GraphQLNonNull (GraphQLList (GraphQLNonNull (__DirectiveLocation ))),
97
- resolve = lambda obj , _info : obj .locations ,
98
+ resolve = lambda directive , _info : directive .locations ,
98
99
),
99
100
"args" : GraphQLField (
100
101
GraphQLNonNull (GraphQLList (GraphQLNonNull (__InputValue ))),
You can’t perform that action at this time.
0 commit comments