Strict Mode - Only allow creation of predicates set in schema

Is there any way I can turn on some type of strict mode for DGraph that would only allow the creation of predicates that have already been added via SetSchema?

I just spent some time debugging a typo, which could have been caught by a schema check. I am generally happy to set my schema for all predicates. I understand for some applications it’s an advantage to create new predicates on the fly, but for my application the safety of only creating explicitly set predicates would be welcomed.

1 Like

It’s not possible right now but could be done. Could you please create an issue on Github for this and we can look into this.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.