In New York you can expect to be offered an ACD, which is an Adjournment in Contemplation of Dismissal, also known as a marijuana ACD. As a result of that you would not have a criminal record. You may have to do community service.
Be aware that you do not have to accept this offer, and you do have every right to challenge the proofs and assert your rights.
Make sure you have an experienced attorney analyze the facts and the law before accepting any plea.
Note: For informational purposes only. Seek an in person consultation with an attorney to be informed about all of your rights.