Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prisma get single data query

const lastLocations = await db.locations.findMany({
    where: {
      company,
    },
    distinct: ['user'],
    orderBy: {
      id: 'desc',
    },
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #prisma #single #data #query
ADD COMMENT
Topic
Name
5+9 =