Skip to content

feat: surface content-relationship --field flag in help text#153

Merged
angeloashmore merged 3 commits intomainfrom
feat/cr-field-help
Apr 18, 2026
Merged

feat: surface content-relationship --field flag in help text#153
angeloashmore merged 3 commits intomainfrom
feat/cr-field-help

Conversation

@angeloashmore
Copy link
Copy Markdown
Member

@angeloashmore angeloashmore commented Apr 18, 2026

Resolves: #140

Description

Adds a FETCHED FIELDS section to prismic field add content-relationship --help explaining how --field fetches specific fields from related documents, its requirements, and dot notation support.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Run prismic field add content-relationship --help and verify the FETCHED FIELDS section appears.


Note

Low Risk
Low risk: this PR only updates CLI help text/documentation for the content-relationship field and does not change command behavior or data handling.

Overview
Adds a new "FETCHED FIELDS" section to prismic field add content-relationship --help explaining what --field does (fetching specific fields from linked documents), that it requires exactly one --custom-type, and that dot-notation is supported for nested/group fields.

Reviewed by Cursor Bugbot for commit 287d868. Bugbot is set up for automated code reviews on this repo. Configure here.

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

Adds a FETCHED FIELDS section explaining how --field fetches specific
fields from related documents, eliminating the need for graphQuery or
fetchLinks.

Resolves #140

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread src/commands/field-add-content-relationship.ts Outdated
Comment thread src/commands/field-add-content-relationship.ts Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread src/commands/field-add-content-relationship.ts Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@angeloashmore angeloashmore merged commit 84390d1 into main Apr 18, 2026
13 checks passed
@angeloashmore angeloashmore deleted the feat/cr-field-help branch April 18, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Content-relationship --field flag is not discoverable

1 participant