Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Introduce test for interface fragment on object type#261

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Kingdutch wants to merge1 commit intoteamwalnut:master
base:master
Choose a base branch
Loading
fromKingdutch:bugreport/interface-fragment-on-object

Conversation

@Kingdutch
Copy link
Contributor

If interface A is implemented by object B then a fragment F on A should be
spreadable on a field returning object B. This is described in the spec
undersection
5.5.2.3.1
.

This test shows that this fails if a field from the fragment is also selected
in the top level selection. This is a valid use-case when a component lower
in the tree requires the data and the component making the query does too.

jfrolich reacted with thumbs up emoji
If interface A is implemented by object B then a fragment F on A should bespreadable on a field returning object B. This is described in the specunder [section5.5.2.3.1](https://spec.graphql.org/June2018/#sec-Abstract-Spreads-in-Object-Scope).
@jfrolich
Copy link
Contributor

jfrolich commentedJul 2, 2021
edited
Loading

Thanks! I think I made it too type-safe so this case raises an error. I'll look into how this can be addressed.

Kingdutch reacted with hooray emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Kingdutch@jfrolich

[8]ページ先頭

©2009-2025 Movatter.jp