A small suggestion for your docs: instead of using foo and bar, you might be better off using well known examples, like cart and items, or projects and tasks. This usually helps to understand the context.
One might even add a schema of the explainer context in the documentation somewhere.