public void Resolve(GraphQLDocument doc) { this.Type = doc.ResolveValueType(this.definition.Type); //if(this.definition.DefaultValue is ScalerValues sv)!!! //{ // this.DefaultValue = sv.Value; //} //else { this.DefaultValue = this.definition.DefaultValue?.ToString(); } this.Type = doc.ResolveValueType(this.definition.Type); }
public void Resolve(GraphQLDocument doc) { this.Type = doc.ResolveValueType(this.definition.Type); if (this.definition.DefaultValue is GraphQLParser.AST.GraphQLScalarValue sv) { this.DefaultValue = sv.Value; } else { this.DefaultValue = this.definition.DefaultValue?.ToString(); } this.Type = doc.ResolveValueType(this.definition.Type); }
public void Resolve(GraphQLDocument doc) { if (this.Name == "__typename") { return; } if (this.definition != null) { this.Type = doc.ResolveValueType(this.definition.Type); } else if (this.definitionInput != null) { this.Type = doc.ResolveValueType(this.definitionInput.Type); } foreach (Argument a in this.Arguments) { a.Resolve(doc); } }
public void Resolve(GraphQLDocument doc) { Paramaters = operation.VariableDefinitions?.ToDictionary(x => x.Variable.Name.Value, x => doc.ResolveValueType(x.Type)) ?? new Dictionary <string, ValueTypeReference>(); var rootType = doc.ResolveType(operation.Operation) as IGraphQLFieldCollection; (this.Query, this.Path) = doc.ResolveQuery(operation.Location); Selection.Resolve(doc, rootType); }