Prisma1: Rename directive @isUnique to @unique

Created on 6 Nov 2017  路  3Comments  路  Source: prisma/prisma1

In favour of less code to write when defining a data model I'm suggesting to rename the @isUnique directive to simply @unique. There are no other precedents of this naming scheme, so changing it here won't result in any inconsistency.

aredatamodel rf1-draft

Most helpful comment

Agree. Let's introduce this with the 1.0 release.
However, this shouldn't be a problem since we can support both variants and deprecate @isUnique for a certain period of time to make the transition easier.

All 3 comments

This is a breaking change and should be planned accordingly, similar to https://github.com/graphcool/framework/issues/817.

Agree. Let's introduce this with the 1.0 release.
However, this shouldn't be a problem since we can support both variants and deprecate @isUnique for a certain period of time to make the transition easier.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sorenbs picture sorenbs  路  3Comments

jannone picture jannone  路  3Comments

Fi1osof picture Fi1osof  路  3Comments

schickling picture schickling  路  3Comments

marktani picture marktani  路  3Comments