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

SelectedListValue is not referenced #76

Open
glen-84 opened this issue Dec 17, 2024 · 1 comment
Open

SelectedListValue is not referenced #76

glen-84 opened this issue Dec 17, 2024 · 1 comment

Comments

@glen-84
Copy link
Contributor

glen-84 commented Dec 17, 2024

There's a SelectedListValue node, but it doesn't show where it's used. Is it part of SelectedValue, like SelectedObjectValue is?

SelectedValue ::
    Path
    SelectedObjectValue
    Path . SelectedObjectValue
    Path SelectedListValue            # Add this? (but not SelectedListValue on its own)
    SelectedValue | SelectedValue

The description is also a bit confusing:

A SelectedListValue is an ordered list of SelectedValue wrapped in square brackets []. It is used to express semantic equivalence between an argument expecting a list of values and the values of a list field within the output object.

The SelectedListValue differs from the ListValue defined in the GraphQL specification by only allowing one SelectedValue as an element.

It's an "ordered list" ... but only allows one value. Is it really a list then?

@PascalSenn
Copy link
Contributor

@glen-84 I agree, the text is confusing. I think it's historical that we first wanted to allow for more than one item.

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

No branches or pull requests

2 participants