Beispiel #1
0
 public void Resolve(GraphQLDocument doc)
 {
     this.rootType = doc.ResolveType(this.definition.TypeCondition) as IGraphQLFieldCollection;
     this.Selection.Resolve(doc, this.rootType);
     this.Path  = doc.ResolveQuerySource(this.definition.Location);
     this.Query = doc.ResolveFragment(this.definition);
 }
Beispiel #2
0
        public void Resolve(GraphQLDocument doc)
        {
            this.Paramaters = this.operation.VariableDefinitions?.ToDictionary(x => x.Variable.Name.Value, x => doc.ResolveValueType(x.Type)) ?? new Dictionary <string, ValueTypeReference>();

            IGraphQLFieldCollection rootType = doc.ResolveType(this.operation.Operation) as IGraphQLFieldCollection;

            this.Path  = doc.ResolveQuerySource(this.operation.Location);
            this.Query = doc.ResolveQuery(this.operation);

            this.Selection.Resolve(doc, rootType);
        }