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

Do not mutate passed field map in ObjectType and ObjectInput #132

Merged
merged 1 commit into from
Aug 18, 2015

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.

None yet

3 participants