Add "hasOne" to relationTypes

/to @raymondfeng