Public changeset functions

I don’t think it matters much where it goes but the rule I personally follow is to keep the things without side-effects in the schema (so that includes business logic because guess what, validations are business logic too :smiley:) and everything else goes in the context.

EDIT: to add to this, the only reason I keep this distinction is for understanding/simplicity/testing but I don’t fret too much about it.

4 Likes