Closed roylanmartinez closed 3 years ago
The documentation states that in order to add additional fields you should add this inside the settings.py file:
REGISTER_MUTATION_FIELDS = { "email": "String", "username": "String", "luck_number": "Int", }
But it does not work, the proper way to do it is by adding the following code to the GRAPHQL_AUTH variable inside the settings.py file:
GRAPHQL_AUTH = { ... 'REGISTER_MUTATION_FIELDS': { "email": "String", "username": "String", "luck_number": "Int", } }
And you should follow this pattern for all the dynamic fields.
Prerequisites
The documentation states that in order to add additional fields you should add this inside the settings.py file:
But it does not work, the proper way to do it is by adding the following code to the GRAPHQL_AUTH variable inside the settings.py file:
And you should follow this pattern for all the dynamic fields.