CompleteInitialTypes returns all the type updates regardless of the worker options. This is useful in situations where the worker options are not known in advance or it is required to consider all initial pre-defined types. An example of such situation is while allowing type updates to go through du
(namespace uint64)
| 647 | // alter if they are same as existing pre-defined types. This is useful for |
| 648 | // live loading a previously exported schema. |
| 649 | func CompleteInitialTypes(namespace uint64) []*pb.TypeUpdate { |
| 650 | return initialTypesInternal(namespace, true) |
| 651 | } |
| 652 | |
| 653 | // NOTE: whenever defining a new type here, please also add it in x/keys.go: preDefinedTypeMap |
| 654 | func initialTypesInternal(namespace uint64, all bool) []*pb.TypeUpdate { |
no test coverage detected