CompleteInitialSchema returns all the schema updates regardless of the worker options. This is useful in situations where the worker options are not known in advance and it's better to create all the reserved predicates and remove them later than miss some of them. An example of such situation is du
(namespace uint64)
| 765 | // them later than miss some of them. An example of such situation is during bulk |
| 766 | // loading. |
| 767 | func CompleteInitialSchema(namespace uint64) []*pb.SchemaUpdate { |
| 768 | return initialSchemaInternal(namespace, true) |
| 769 | } |
| 770 | |
| 771 | func initialSchemaInternal(namespace uint64, all bool) []*pb.SchemaUpdate { |
| 772 | var initialSchema []*pb.SchemaUpdate |
no test coverage detected