Skip to content
Discussion options

You must be logged in to vote

Hi @nikola418 👋

The findFirst method in Prisma Client indeed takes in skip and take options, even though it is designed to return the first record that matches the specified conditions.

The skip option is used to specify how many of the returned objects in the list should be skipped. This can be useful when you want to ignore a certain number of records before selecting the first one that matches your conditions.

The take option, on the other hand, specifies how many objects should be returned in the list. When used with findFirst, take is implicitly 1 or -1. findFirst is only affected by whether the value is positive or negative - any negative value reverses the list.
So, while it might …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nikola418
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants