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

Added an example on how to populate a relationship field in createItem #3334

Merged
merged 8 commits into from Aug 4, 2020

Conversation

raymondjia
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Aug 3, 2020

💥 No Changeset

Latest commit: ed6eb67

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@request-info
Copy link

request-info bot commented Aug 3, 2020

It looks like we could use some more details. Good titles and descriptions help us fix things faster. If you can provide more information please update this issue.

@raymondjia
Copy link
Contributor Author

The documentation lacks an example on how to set a relationship field. It took me a while to hunt down the answers through trial and error. Just want to save some time for others.

@MadeByMike
Copy link
Contributor

This is captured in the Relationship documentation: https://www.keystonejs.com/keystonejs/fields/src/types/relationship/#create-and-append-a-related-item as well as by the by the type. I've added a note making this more apparent and linking to the correct docs rather than documenting this in 2 places.

Copy link
Contributor

@timleslie timleslie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@timleslie timleslie merged commit 193b330 into keystonejs:master Aug 4, 2020
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.

None yet

3 participants