Type Alias GraphqlBlock

GraphqlBlock:
    | {
        blocks: GraphqlBlockByType[TopLevelBlockType][];
        comment?: string[];
        type: Schema;
    }
    | {
        comment?: string[];
        name: string;
        props: GraphqlBlockByType[Property
        | Operation][];
        type: Input | Type;
    }
    | { comment?: string[]; name: string; type: Scalar }
    | {
        comment?: string[];
        name: string;
        required: boolean;
        type: Property;
        value: string;
    }
    | {
        blocks: GraphqlBlockByType[Property
        | Operation][];
        comment?: string[];
        type: OperationType;
    }
    | {
        args: GraphqlBlockByType[Property][];
        comment?: string[];
        name: string;
        output: { required: boolean; value: string };
        type: Operation;
    }
    | { comment?: string[]; name: string; type: Union; values: string[] }
    | { comment?: string[]; name: string; type: Enum; values: string[] }

All supported GraphQL block types.

Type declaration

  • {
        blocks: GraphqlBlockByType[TopLevelBlockType][];
        comment?: string[];
        type: Schema;
    }
  • {
        comment?: string[];
        name: string;
        props: GraphqlBlockByType[Property | Operation][];
        type: Input | Type;
    }
  • { comment?: string[]; name: string; type: Scalar }
  • {
        comment?: string[];
        name: string;
        required: boolean;
        type: Property;
        value: string;
    }
    • Optionalcomment?: string[]
    • name: string
    • required: boolean
    • type: Property
    • value: string

      Meaning the GraphQL value type.

  • {
        blocks: GraphqlBlockByType[Property | Operation][];
        comment?: string[];
        type: OperationType;
    }
  • {
        args: GraphqlBlockByType[Property][];
        comment?: string[];
        name: string;
        output: { required: boolean; value: string };
        type: Operation;
    }
  • { comment?: string[]; name: string; type: Union; values: string[] }
  • { comment?: string[]; name: string; type: Enum; values: string[] }