public static IntrospectedType CreateForObject(GraphQLObjectType type, IIntrospector introspector, IObjectTypeTranslator typeObserver) { var introspectedType = new ComplexIntrospectedType(introspector, typeObserver); introspectedType.Name = type.Name; introspectedType.Description = type.Description; introspectedType.Kind = TypeKind.OBJECT; return(introspectedType); }
public override NonNullable <IntrospectedType> Introspect(ISchemaRepository schemaRepository) { var introspectedType = new ComplexIntrospectedType(schemaRepository, this); introspectedType.Name = this.Name; introspectedType.Description = this.Description; introspectedType.Kind = TypeKind.OBJECT; return(introspectedType); }
public static IntrospectedType CreateForInterface(GraphQLInterfaceType type, IIntrospector introspector, IObjectTypeTranslator typeObserver) { var introspectedType = new ComplexIntrospectedType(introspector, typeObserver); introspectedType.Name = type.Name; introspectedType.Description = type.Description; introspectedType.Kind = TypeKind.INTERFACE; return(introspectedType); }