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

Add Connection Type to taxonomy field #219

Open
traed opened this issue Jun 19, 2024 · 1 comment
Open

Add Connection Type to taxonomy field #219

traed opened this issue Jun 19, 2024 · 1 comment
Labels
type: enhancement Improvements to existing functionality

Comments

@traed
Copy link

traed commented Jun 19, 2024

What problem does this address?

When using a post object field we can select the GQL connection type (one-to-one or on-to-many) but this is not available when using the taxonomy field. If we want to have a field that represents a single taxonomy term (for example a "primary category") the GQL query will return an array of nodes regardless.

What is your proposed solution?

Add the same connection type setting as the post type field has or infer it from the taxonomy field's appearance field.

What alternatives have you considered?

No response

Additional Context

No response

@josephfusco josephfusco added the type: enhancement Improvements to existing functionality label Jul 10, 2024
@jasonbahl
Copy link
Contributor

@traed thanks for opening this issue! I think this makes sense as an option on the Taxonomy field.

Let me know if you're interested in opening a PR! 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvements to existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants