I'm trying to create a TypeDef with two fields unique restriction. I know it's possible to do it in the interface of faunaDB Console as you can see in this image, but I want to do it using a schema.
My current (not working) code, thats only assigns the first variable (in this case "promo") to the created index:
type PromoTemplateVariable {
promo: Promo! @unique(index: "unique_promo_variable")
variable: TemplateVariable! @unique(index: "unique_promo_variable")
value: String!
}