userName(unique: ['countryId'])
You can include as many other properties in the array that make up the other properties that must be considered in the "unique" constraint on the username.
So, for example if you wanted to make userName
unique within a countryId
and provinceId
it would look like this:
userName(unique: ['countryId', 'provinceId']
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…