I’m using java client to mutate json data. For a new predicate with array string values, I thought it will be set as list type, but actually the type is single string. So dose the list type predicate must be set schema explicitly?
json = “{“uid”:“0x1430e”,“array_property”:[“a”, “b”, “c”]}”;
Mutation mu = Mutation.newBuilder().setSetJson(ByteString.copyFromUtf8(json.toString())).build();
you should set your schema when you want to insert values into list type, but if you also want to dynamicly extend your predicates, you should set schema first for those predicates which have list type