Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Question] any way to use in operator in query #11

@zecka

Description

@zecka

Is there any way to do somthing like the "in" operator in prisma

const getUser = await prisma.user.findMany({
  where: {
    name: { in: ['Saqui', 'Clementine', 'Bob'] },
  },
});

in seem works with number. It would be greate to make it work with string or string[] or number[], ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions