Hey @tamalsaha,
Dgraph would not consider the type to be of “string” by default in case of predicate having different types of values. I apologize for the previous information. It would infer the type based on the value of the predicate. So mutation like this would throw an error.
{
"set": [
{
"port": 443
},
{
"port": "http"
}
]
}
For these types of predicates, I suggest you to define the type as “string” beforehand.