graphql-kit / graphql-faker

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

added @stub directive #158

Closed tyllrb closed 2 years ago

tyllrb commented 2 years ago

Added a new directive @stub, which takes a single parameter value, and will always return that value. This is useful if you don't want random repeated data, but rather just a simple stubbed response

IvanGoncharov commented 2 years ago

Hi @tyllrb 👋 You can do the same with existing @examples directive, just provide a single value to it.