State machines are applied to a wide variety of programming problems. I found it useful to think of a GraphQL query as a state machine. Part 0: Introduction to State Machines Practically speaking, a state machine is a unit of code with these properties: It has a set of states It is...