Skip to content

How do querys return the count records to be used in pagination? #959

Closed

Description

@alaxfilho
No description provided.

Activity

  1. pantharshit00 commented on Nov 20, 2019

    @pantharshit00
    Contributor

    Hello,

    We currently do provide a count query(prisma/prisma-client-js#202)

    Example usage:

    const count = await photon.users.count()

    It is not documented yet and its functionality is limited right now(see prisma/prisma-client-js#252). We are currently specing out and implementing all sorts of aggregation that you can use(https://github.com/prisma/specs/tree/master/photonjs#aggregations)

    I create this issue regarding documentation of count query: #965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions