Q: Is there any way to restrict schema change
Antiarchitect opened this issue · 4 comments
Antiarchitect commented
Is there any way to restrict extending the schema (when using the --extend option) and allow to only fake data?
IvanGoncharov commented
@Antiarchitect Not sure I understand this question.
Can you give examples of SDL that you want to restrict?
Also please explain your use case in more detail.
Antiarchitect commented
@IvanGoncharov
We are trying to use graphql-faker as a proxy to our real graphql API and want simple mocking. So we want to restrict of changing/adding new types and stuff and allow only to fake the data.
IvanGoncharov commented
@Antiarchitect So if you can't change types or add new types what you are doing with a proxy?
If you want to just mock server you can dump server's introspection as SDL and run it without --extend
.
Antiarchitect commented
Ok, thank you @IvanGoncharov