Skip to content

Conversation

@freiksenet
Copy link
Contributor

Types used to mutate the fields passed to it, which can be very confusing and prevents reuse (parts) of field definitions between multiple types. Changed it so that fields is first shallow copied and new object is returned as a field map.

leebyron added a commit that referenced this pull request Aug 18, 2015
Do not mutate passed field map in ObjectType and ObjectInput
@leebyron leebyron merged commit bf75d43 into graphql:master Aug 18, 2015
@leebyron
Copy link
Contributor

Good idea, thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants