Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

fix(Type): variable values and schema types translation #48

Merged
merged 7 commits into from
Mar 16, 2017

Conversation

adamivora
Copy link
Collaborator

@adamivora adamivora commented Mar 13, 2017

This request improves variable handling.
Fixes:

  • variables in nested objects
  • variables in jagged arrays
  • schema repository type recognition for complicated types
  • crashes with enums in variables

Adds:

Copy link
Owner

@mkmarek mkmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Just small refactoring required. After that we can merge it 👍

@@ -73,7 +74,37 @@ public object TranslatePerDefinition(object inputObject, GraphQLBaseType typeDef
return this.CreateObjectFromDynamic((GraphQLInputObjectType)typeDefinition, (ExpandoObject)inputObject);

if (typeDefinition is GraphQLList)
return this.CreateList((IEnumerable)inputObject, (GraphQLList)typeDefinition);
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you could break this down to smaller methods?

@mkmarek mkmarek merged commit 1862464 into mkmarek:develop Mar 16, 2017
@adamivora adamivora deleted the VariableTranslation branch March 16, 2017 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants