https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • n

    Natalia

    11/18/2020, 3:05 PM
    <!here> Your community needs YOU! 💪 We're looking for speakers to present at our fun, interactive online events: • Advanced TypeScript Trickery 🎩 - an openmic format to discuss your TS experiences, • TypeScript Berlin Meetup 🤓 - where you can dive deep in your subject and interact with your audience via a quiz, • GraphQL Berlin Meetup graphql - for all things GraphQL, • Prisma Online Meetup prisma cool - where we talk databases and Prisma. If you've an idea for a talk or something else that you'd like to present - get in touch with us at events@prisma.io. We will help you polish it up and support you throughout the process. 🤝 All our events are recorded, available on YouTube and professionally transcribed for accessibility. Help the community stay connected in these weird, weird times. 🤗
    prisma rainbow 7
    graphql 7
    📣 2
    typescript 8
    🌎 3
    🔥 2
    prisma cool 2
    fast parrot 12
    🎩 6
    🌏 3
    🙏 2
    🏗️ 2
    👩‍🚒 2
    🗺️ 2
    😎 2
    🌍 3
    🌶️ 3
  • a

    Aaron Fulkerson

    11/18/2020, 10:03 PM
    Is there a way to get count of all items + the results of a query with Prisma without an extra query?
    a
    r
    • 3
    • 6
  • a

    Andreas Harmuth

    11/19/2020, 7:50 AM
    Hey all, What are best practice when it comes to Fuzzy search of string or just something like LIKE in SQL for prisma?
    n
    • 2
    • 8
  • t

    tylim

    11/19/2020, 3:37 PM
    heh guys, quick question here
  • t

    tylim

    11/19/2020, 3:38 PM
    can prisma 2.0 run in nodejs 10?
  • t

    tylim

    11/19/2020, 3:38 PM
    i am not able to get prisma running firebase function
  • t

    tylim

    11/19/2020, 3:38 PM
    it keeps showing prisma/client did not initialize yet
  • t

    tylim

    11/19/2020, 6:45 PM
    ok i solved the issue
    💯 2
  • j

    Jawad Sefiani

    11/19/2020, 7:32 PM
    Hi everyone! How do I use Prisma inside of a monorepo managed by Lerna? Multiple packages will depend on Prisma's types, so what do you advise?
    b
    j
    • 3
    • 36
  • j

    John Cantrell

    11/19/2020, 8:13 PM
    shouldn't I not be running into unique constraint issues when using upsert?
    r
    • 2
    • 3
  • j

    Jake

    11/21/2020, 1:05 AM
    Hey Everyone! Is there a specific spot I should ask prisma1 questions? Is here ok?
  • p

    pzaenger

    11/21/2020, 6:23 AM
    @Jake There is a #prisma1 channel 🙂
    👍 1
  • k

    KJReactor

    11/21/2020, 1:30 PM
    @Ryan Where is the findMany or other methods in the Prisma/prisma-client repo?
    r
    • 2
    • 1
  • a

    Ahmet

    11/21/2020, 8:33 PM
    Do I have problems scaling in prisma1?
  • t

    tylim

    11/22/2020, 3:43 PM
    heh guys, a question here
  • t

    tylim

    11/22/2020, 3:44 PM
    if i do filter and pagination query, which one will happen first?
  • t

    tylim

    11/22/2020, 3:45 PM
    according to the doc
  • t

    tylim

    11/22/2020, 3:45 PM
    Offset pagination does not scale at a database level. For example, if you skip 200,000 records and take the first 10, the database still has to traverse the first 200,000 records before returning the 10 that you asked for - this negatively affects performance.
  • t

    tylim

    11/22/2020, 3:46 PM
    Copy code
    const results = await prisma.post.findMany({
    where: {
        email: {
          endsWith: '<http://prisma.io|prisma.io>',
        },
      skip: 3,
      take: 4,
    })
    so if i do something like this
  • t

    tylim

    11/22/2020, 3:46 PM
    will it filter first or will it offset first?
  • t

    tylim

    11/22/2020, 3:51 PM
    if offset come before filter, then it is not effecient
  • t

    tylim

    11/22/2020, 4:22 PM
    oh wait, my question doesnt make sense, please ignore it, nvm thank you
    👍 1
  • b

    Bohdan Kolosovsky

    11/23/2020, 8:57 AM
    hi guys, could someone help me?)
  • b

    Bohdan Kolosovsky

    11/23/2020, 8:57 AM
    I have table media with fields entityType and entityId - can it be relative to different tables? For example if entityType - avatar, entityId relative to users.id, if entityType questionPreview it relative to questions.id?
    r
    • 2
    • 5
  • b

    Bohdan Kolosovsky

    11/23/2020, 8:58 AM
    I can not find same examples
  • h

    huv1k

    11/23/2020, 9:57 AM
    👋 Hey, I wrote article how to improve prototyping flow with Prisma prisma cool There is one cool trick 🚀 👀 Go check it out! https://huvik.dev/blog/improve-prototyping-speed-of-prisma
    🚀 8
    💚 3
    💯 7
    j
    z
    a
    • 4
    • 5
  • d

    defrex

    11/23/2020, 9:49 PM
    Am I understanding correctly you cannot
    update
    by non-unique — or multiple-value — filters? eg.
    Copy code
    prisma.post.update({ 
      where: { id: { in: somePostIds } }, 
      data: { status: Status.Published },
    })
    j
    r
    • 3
    • 4
  • a

    Armaan Dhanji

    11/24/2020, 3:58 AM
    https://www.npmjs.com/package/prisma-nestjs-graphql
  • a

    Aaron Fulkerson

    11/24/2020, 3:58 AM
    Are cascading deletes ever going to be something that is implemented in the client?
    r
    • 2
    • 1
  • a

    Armaan Dhanji

    11/24/2020, 3:59 AM
    Can someone explain to me what this package does ^ for nestjs users. What is the difference between using this package to generate types vs just using the types that get generated from prisma client?
    a
    • 2
    • 10
1...405406407...637Latest