I have created an entity called Order
in my datamodel.prisma
file. there it should have it's automatically generating field called orderRef
. which should have an automatically generated incremental value for createOrder
field of the Order entity for each mutation call.
for the first Order the value of the 'orderRef' field should be OD1, the second Order should have the value OD2 for the field 'orderRef' and so on. eg:
(OD1, OD2, ....... OD124, ..... )
What is the easiest way to achieve this? yes the value should be String, instead of Number.