Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix and update docs for dgraph debug tool for --parse_key option #636

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

mangalaman93
Copy link
Contributor

related PR: dgraph-io/dgraph#7640

@netlify
Copy link

netlify bot commented Aug 24, 2023

Deploy Preview for dgraph-docs-repo ready!

Name Link
🔨 Latest commit 8ee461f
🔍 Latest deploy log https://app.netlify.com/sites/dgraph-docs-repo/deploys/64edf3e7fd253a000807d049
😎 Deploy Preview https://deploy-preview-636--dgraph-docs-repo.netlify.app/howto/using-debug-tool
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mangalaman93 added a commit to dgraph-io/dgraph that referenced this pull request Aug 24, 2023
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
000000000000000000000b6467726170682e74797065000000000000000001
     {d} Key: UID: 1, Attr: 0-dgraph.type, Data key

This tells you that the key
000000000000000000000b6467726170682e74797065000000000000000001
is for the predicate `0-dgraph.type` and the UID `1`.

Docs PR: dgraph-io/dgraph-docs#636

Co-authored-by: Aman Mangal <aman@dgraph.io>
@mangalaman93 mangalaman93 merged commit 8a8830f into main Aug 29, 2023
4 of 5 checks passed
@mangalaman93 mangalaman93 deleted the danielmai/debug-decode-key branch August 29, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants