Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename list() functions #68

Open
simenandre opened this issue Jan 13, 2023 · 2 comments
Open

Rename list() functions #68

simenandre opened this issue Jan 13, 2023 · 2 comments

Comments

@simenandre
Copy link
Member

This was originally reported by @braaar to me in IRL.

There is something else called list in the Tripletex API (essentially, a batch get-function). This can be confused with our list() function.

Other alternatives could be find(), get(), getMany(). Other suggestions?

@braaar
Copy link
Member

braaar commented Jan 16, 2023

Here are some word pairs that could work together:

One entity Multiple entities
findOne find
findOne findMany
findOne findAll
get list
get getMany
get getAll

@kasperaamodt
Copy link

I like the Prisma way, findUnique and findMany.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants