-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix issue with Relay serialization #2638
Changes from 5 commits
91e8043
7bb0b26
186d5ea
dea43d5
3c32028
a68d585
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,16 +79,16 @@ fragment UserFragment_mutated on User @argumentDefinitions( | |
... on Mutated @include(if: $cond_mutated) { | ||
id_mutated | ||
__typename_mutated | ||
checkins_mutated(environments_mutated: [WEB_mutated]) { | ||
checkins_mutated(environments_mutated: [MOBILE]) { | ||
__typename_mutated | ||
} | ||
friends_mutated(after_mutated: $after_mutated, first_mutated: $first_mutated, traits_mutated: [HELPFUL_mutated]) { | ||
friends_mutated(after_mutated: $after_mutated, first_mutated: $first_mutated, traits_mutated: [DERISIVE]) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's keep the original N/N_mutated style just to make it more obvious what the test is doing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't, serialization for enums only returns valid values and HEPLFUL_mutated isn't a valid enum value for traits. |
||
count_mutated | ||
} | ||
... on Mutated @skip(if: $cond_mutated) { | ||
name_mutated | ||
} | ||
thumbnail: profilePicture_mutated(size_mutated: "32_mutated") { | ||
thumbnail: profilePicture_mutated(size_mutated: 42) { | ||
height_mutated | ||
width_mutated | ||
src: uri_mutated | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't remember if GraphQLInputObject and GraphQLList also support
serialize()
, if they do can we just use the approach here for all types (ie replace the body ofprintLiteral
w the body of the enum case)? Even if lists/objects don't work, we could do this for all enums and scalars.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only scalars and enums have serialize.