Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(debug): add parse_key to debug tool
This adds a `dgraph debug --parse_key` flag that can return the ParsedKey struct of a hex key. This is useful if there's a lone key that you want parse without having to have a p directory around. This flag does not need a p directory, just the hex key string. Example: $ dgraph debug --parse_key 00000375726c000000000000000001 Key: {ByteType:0 Attr:url Uid:1 HasStartUid:false StartUid:0 Term: Count:0 bytePrefix:0} This tells you that the key 00000375726c000000000000000001 is for the predicate `url` and the UID `0x1`.
- Loading branch information