What are the use cases of type system if it is not providing type safety?
This is our schema:
type person {
name: string
age:int
}
name:string@index(exact)@lang .
age:int@index(int) .
Here is the mutation:
{
"set":
{
"name":"person1",
"age": 20,
"dgraph.type": "person",
"address":"myAdress"
}
}
The above mutation adds a node successfully of type person with a predicate address which is not declared in our type system. So our concern is that the type system is only used to categorize the nodes and query them based on their type or does it also provide type safety?