Interface ClientDelegate<ExtArgs, GlobalOmitOptions>

interface ClientDelegate<ExtArgs, GlobalOmitOptions> {
    fields: ClientFieldRefs;
    aggregate<T>(args: Subset<T, ClientAggregateArgs<DefaultArgs>>): Prisma.PrismaPromise<GetClientAggregateType<T>>;
    count<T>(args?: Subset<T, ClientCountArgs<DefaultArgs>>): Prisma.PrismaPromise<T extends Record_2<"select", any>
        ? T<T>["select"] extends true
            ? number
            : {
                [P in string | number | symbol]: P extends keyof ClientCountAggregateOutputType
                    ? ClientCountAggregateOutputType[P<P>]
                    : never
            }
        : number>;
    create<T>(args: SelectSubset<T, ClientCreateArgs<ExtArgs>>): Prisma__ClientClient<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    createMany<T>(args?: SelectSubset<T, ClientCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>;
    createManyAndReturn<T>(args?: SelectSubset<T, ClientCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>[]>;
    delete<T>(args: SelectSubset<T, ClientDeleteArgs<ExtArgs>>): Prisma__ClientClient<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    deleteMany<T>(args?: SelectSubset<T, ClientDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>;
    findFirst<T>(args?: SelectSubset<T, ClientFindFirstArgs<ExtArgs>>): Prisma__ClientClient<null | GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, null, ExtArgs, GlobalOmitOptions>;
    findFirstOrThrow<T>(args?: SelectSubset<T, ClientFindFirstOrThrowArgs<ExtArgs>>): Prisma__ClientClient<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    findMany<T>(args?: SelectSubset<T, ClientFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>[]>;
    findUnique<T>(args: SelectSubset<T, ClientFindUniqueArgs<ExtArgs>>): Prisma__ClientClient<null | GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, null, ExtArgs, GlobalOmitOptions>;
    findUniqueOrThrow<T>(args: SelectSubset<T, ClientFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ClientClient<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    groupBy<T, HasSelectOrTake, OrderByArg, OrderFields, ByFields, ByValid, HavingFields, HavingValid, ByEmpty, InputErrors>(args: {
        [key in string | number | symbol]: key extends keyof ClientGroupByArgs<DefaultArgs>
            ? T[key<key>]
            : never
    } & OrderByArg & InputErrors): {} extends InputErrors
        ? GetClientGroupByPayload<T>
        : Prisma.PrismaPromise<InputErrors>;
    update<T>(args: SelectSubset<T, ClientUpdateArgs<ExtArgs>>): Prisma__ClientClient<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    updateMany<T>(args: SelectSubset<T, ClientUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>;
    updateManyAndReturn<T>(args: SelectSubset<T, ClientUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>[]>;
    upsert<T>(args: SelectSubset<T, ClientUpsertArgs<ExtArgs>>): Prisma__ClientClient<GetFindResult<$ClientPayload<ExtArgs>, T, GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    [K: symbol]: {
        meta: {
            name: "Client";
        };
        types: TypeMap<ExtArgs>["model"]["Client"];
    };
}

Type Parameters

Indexable

  • [K: symbol]: {
        meta: {
            name: "Client";
        };
        types: TypeMap<ExtArgs>["model"]["Client"];
    }
    • meta: {
          name: "Client";
      }
      • name: "Client"
    • types: TypeMap<ExtArgs>["model"]["Client"]

Properties

Fields of the Client model

Methods

  • Count the number of Clients. Note, that providing undefined is treated as the value not being there. Read more here: https://pris.ly/d/null-undefined

    Type Parameters

    Parameters

    Returns Prisma.PrismaPromise<T extends Record_2<"select", any>
        ? T<T>["select"] extends true
            ? number
            : {
                [P in string | number | symbol]: P extends keyof ClientCountAggregateOutputType
                    ? ClientCountAggregateOutputType[P<P>]
                    : never
            }
        : number>

    // Count the number of Clients
    const count = await prisma.client.count({
    where: {
    // ... the filter for the Clients we want to count
    }
    })