This is now on our road map and is planned for our Fall development semester.
Thank you for your suggestion and votes.
Bytecode support for Gremlin API is scheduled for public preview, December 2019.
Work for this feature has been started. Will update here when this feature becomes generally available.
Thank you.Jason commented
MongoDB API supports unique keys, but we need this functionality for Graph as well.