示例#1
0
        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);
        }
示例#3
0
        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);
        }