-
Notifications
You must be signed in to change notification settings - Fork 184
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
docs(state-sync/dozer): first version #3033
Conversation
|
|
||
This query looks for some fields from a single table. | ||
|
||
1. Create a file, `query.json`, with this content. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to simplify even more and have a "just copy and run this" experience, should we skip creating a file and parsing it with jq, and instead just put the query inline in the curl command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, no. It's easier to edit a file than it is to edit the query on the command line.
} | ||
``` | ||
|
||
Here we only care about the first result, so from now on we use this command line to tell `jq` to only show us that information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even better: put limit 1
in the query so we only download the first row
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different things. LIMIT 1
means the first row of the query result. jq .results[0]
means the first result (because there could be multiple queries).
0b6142c
to
f22747a
Compare
d3a88be
to
92c322a
Compare
No description provided.