enkot/prisma-pagination

[QUESTION]: How to exclude some model fields?

Closed this issue · 0 comments

Hi, thank you for your work its a great helper library.

I wonder if you have some clean way to exclude some fields from model.
For example on a list of users i would like to not have passwordHash

{
    "data": [
        {
            "id": "cl09pivpl000c09l8g71tcbgp",
            "name": "Admin",
            "email": "admin@test.com",
            "emailVerified": true,
            "passwordHash": "$2b$10$ZqhmfRCfaDAoTwnbB1d5z.yTs5IOkg3a5b0mwOdA1Aqh0caOKIxUm"
        }
    ],
    "meta": {
        "total": 1,
        "lastPage": 1,
        "currentPage": 1,
        "perPage": 20,
        "prev": null,
        "next": null
    }
}