graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

Q: Is there any way to restrict schema change #104

Closed Antiarchitect closed 4 years ago

Antiarchitect commented 4 years ago

Is there any way to restrict extending the schema (when using the --extend option) and allow to only fake data?

IvanGoncharov commented 4 years ago

@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 4 years ago

@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 4 years ago

@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 4 years ago

Ok, thank you @IvanGoncharov