How Can I Simply Decrease a Data Store Field By One?

Is there a simple way to do this?

Or is this the only way to do it?

prices_to_show.update({id: i_question_type_P.value},{number_available: prices_to_show.data.where('id', i_question_type_P.value, '==')[0].number_available - 1})
Community Page
Last updated: