Search Results for

    Show / Hide Table of Contents

    TSchemaDocumentInitializer.Init Method

    Initializes the schema document for use in executions.

    Remarks

    A schema can only be used in a GraphQL execution if it's prepared, otherwise an error is raised. A schema initialization will add missing instrospection types, and do further validation of the schema, checking if all type references exist, if the types are correclty defined according to GraphQL specs, among others. A succesful initialization sets the Initialized property to true, and the schema types and properties should not be further modified after the schema was initialized.

    Syntax

    Unit: GraphQL.Schema.Builder

    procedure TSchemaDocumentInitializer.Init;

    See also

    • TSchemaDocumentInitializer
    In This Article
    Back to top GraphQL for Delphi v1.4
    © 2021 - 2024 tmssoftware.com