Skip to content

Use Case

Marcos Silva edited this page Nov 18, 2018 · 1 revision

Imagine you are assigned to the task of showing the custumer's birthday on its profile page. Here is a list of possible places you'd need to change within an imaginary JS stack in order to accomplish it (your stack may be a little different):

  • Back-end repository
    • Sequelize Model
    • Domain schema
    • GraphQL type
    • Fixture factory
  • Front-end repository
    • GraphQL query
    • Domain model
    • Prop Types
    • Fixture factory (in an ideal world it would be shared with its back-end repository, but here is not)
  • Othere repository where the new data is relevant
    • C# class
    • ...
  • ...

Instead of updating each item individually, you could use hubi to automate writing your code: Joi Schemas, Sequelize Models, GraphQL types, C# classes, etc.

Clone this wiki locally