Page Contents

Home > @loopback/repository > CountSchema

CountSchema variable

JSON Schema describing the Count interface. It’s the response type for REST calls to APIs which return count. The type is compatible with SchemaObject from @loopback/openapi-v3, which is not an explicit dependency for @loopback/repository.

Signature:

CountSchema: {
    type: "object";
    title: string;
    'x-typescript-type': string;
    properties: {
        count: {
            type: "number";
        };
    };
}