Set explicit eventId to emitted stream

Could anyone please tell me how to set eventId to the new stream using emit() function?
Thanks.

I think it gets set automatically.
Is there a reason you would want to specify the event id yourself?

This is correct its a UUID that gets generated. If you are trying to do s dedup operation etc you should be using the original stream/position to do so.

Thanks Steven & Greg,
I did intend to use the event Id to do some dedup operation, but yes, we have other options as well.

I just noticed that we can assign an Id when posting an event, but not see where to set it when the event is emitted from a projection…