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

sentence is not complete #84

Closed
wanghaisheng opened this issue Aug 20, 2015 · 2 comments
Closed

sentence is not complete #84

wanghaisheng opened this issue Aug 20, 2015 · 2 comments

Comments

@wanghaisheng
Copy link

in section 5 ### Field Selections on Objects, Interfaces, and Unions Types,
" Because fields are not declared on unions, direct field selection on union-typed selection set. This is true even if concrete implementors of the union define the fieldName."
what does "direct field selection on union-typed selection set." mean?

@leebyron
Copy link
Collaborator

Thanks for pointing this out! I just re-wrote this section to be more clear, I hope it helps.

@wanghaisheng
Copy link
Author

@leebyron .why the following is invalid.it is indirectly queried through a fragment ,the union concrete implementors instead of the union itself.(your original words are Fields from a union-typed selection set must only be queried indirectly via
a fragment)

fragment directFieldSelectionOnUnion on CatOrDog {
   name
   barkVolume
 }

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