></span></code></pre></div>
<p>A transform has two functions: <code>serialize</code> and <code>deserialize</code>. Deserialization
converts a value to a format that the client expects. Serialization does the
reverse and converts a value to the format expected by the persistence layer.</p>
<p>You would use the custom <code>dollars</code> transform like this:</p>
<div class="filename javascript"><div class="ribbon"></div><span>app/models/product.js</span><pre class="language-javascript line-numbers"><code cla