Amplify Toolbox
    Preparing search index...

    Variable schemaConst

    schema: <Types extends ModelSchemaContents>(
        types: NonEmpty<Types>,
    ) => ModelSchema<
        { authorization: []; configuration: any; types: Types },
        never,
    >

    The API and data model definition for Amplify Data. Pass in { <NAME>: a.model(...) } to create a database table and exposes CRUDL operations via an API.

    Type declaration

      • <Types extends ModelSchemaContents>(
            types: NonEmpty<Types>,
        ): ModelSchema<
            { authorization: []; configuration: any; types: Types },
            never,
        >
      • Type Parameters

        • Types extends ModelSchemaContents

        Parameters

        • types: NonEmpty<Types>

          The API and data model definition

        Returns ModelSchema<{ authorization: []; configuration: any; types: Types }, never>

        An API and data model definition to be deployed with Amplify (Gen 2) experience (processSchema(...)) or with the Amplify Data CDK construct (@aws-amplify/data-construct)