Automated MAC (Model API Controller)

Automated MAC (Model API Controller)


One of the most annoying things when building web apps, is creating a new database model/schema and attaching it to your API.

At Stoqey, we build 10-20 models a day, depending on how many projects we have.

Inorder to catch up, we've implemented code generators for our Couchbase database that prints controller methods and GraphQL Schema & definitions.

Prior to this, we used to first defined the models, create the server-side GraphQL schemas, then jump on the client-side, create duplicate model types for our react typescript components, and finally define the GraphQL fragments/queries/mutations/subs e.t.c .... phew!