@@ -197,9 +197,6 @@ Set to ``False`` if you want to disable GraphiQL headers editor tab for some rea
197197
198198This setting is passed to ``headerEditorEnabled `` GraphiQL options, for details refer to GraphiQLDocs _.
199199
200- .. _GraphiQLDocs : https://github.com/graphql/graphiql/tree/main/packages/graphiql#options
201-
202-
203200Default: ``True ``
204201
205202.. code :: python
@@ -230,8 +227,6 @@ Set to ``True`` if you want to persist GraphiQL headers after refreshing the pag
230227
231228This setting is passed to ``shouldPersistHeaders `` GraphiQL options, for details refer to GraphiQLDocs _.
232229
233- .. _GraphiQLDocs : https://github.com/graphql/graphiql/tree/main/packages/graphiql#options
234-
235230
236231Default: ``False ``
237232
@@ -240,3 +235,37 @@ Default: ``False``
240235 GRAPHENE = {
241236 ' GRAPHIQL_SHOULD_PERSIST_HEADERS' : False ,
242237 }
238+
239+
240+ ``GRAPHIQL_INPUT_VALUE_DEPRECATION ``
241+ ------------------------------------
242+
243+ Set to ``True `` if you want GraphiQL to show any deprecated fields on input object types' docs.
244+
245+ For example, having this schema:
246+
247+ .. code :: python
248+
249+ class MyMutationInputType (graphene .InputObjectType ):
250+ old_field = graphene.String(deprecation_reason = " You should now use 'newField' instead." )
251+ new_field = graphene.String()
252+
253+ class MyMutation (graphene .Mutation ):
254+ class Arguments :
255+ input = types.MyMutationInputType()
256+
257+ GraphiQL will add a ``Show Deprecated Fields `` button to toggle information display on ``oldField `` and its deprecation
258+ reason. Otherwise, you would get neither a button nor any information at all on ``oldField ``.
259+
260+ This setting is passed to ``inputValueDeprecation `` GraphiQL options, for details refer to GraphiQLDocs _.
261+
262+ Default: ``False ``
263+
264+ .. code :: python
265+
266+ GRAPHENE = {
267+ ' GRAPHIQL_INPUT_VALUE_DEPRECATION' : False ,
268+ }
269+
270+
271+ .. _GraphiQLDocs : https://graphiql-test.netlify.app/typedoc/modules/graphiql_react#graphiqlprovider-2
0 commit comments