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

    iamclaytonray

    01/20/2021, 4:40 PM
    I’m also getting this error:
    Copy code
    Cannot create property 'clientVersion' on boolean 'true'
    • 1
    • 1
  • j

    jruiseco

    01/20/2021, 5:30 PM
    Is there any plans for a Rust client? I am in dire need of one 😄
  • y

    Yiğit Rüzgar

    01/20/2021, 6:13 PM
    How can I make a query with prisma as follows Just give me the categories that have subcategories. So I want it to list the categories that do not contain subcategories.
    r
    n
    • 3
    • 5
  • a

    Alexander Lang

    01/20/2021, 7:29 PM
    Does the old "experimental" migrate no longer work if I migrate to Prisma 2.13? Or is it safe to upgrade to 2.13 and still use the experimental version (for a little while at least).
    r
    j
    • 3
    • 5
  • s

    Sam Richards

    01/20/2021, 9:49 PM
    Hey folks - great to be here! I'm wondering if anyone has examples of setting up
    http-link-dataloader
    in a Gatsby project or using it with Apollo Link. Gatsby references it in their documentation but not with any examples to use this with Apollo Link: https://www.gatsbyjs.com/plugins/gatsby-source-graphql/#apollo-style-batching
    n
    • 2
    • 2
  • n

    Natalia

    01/21/2021, 3:58 PM
    🤗 “What’s new in Prisma (v2.15.0)” live stream is starts in 2 minutes! Once again, Ryan and Niko from Prisma talk about new releases, planned features and other interesting bits from the Prisma world.* 

    Tune in here▾

    !* 🦜
    fast parrot 4
    👍 1
  • m

    Mykyta Machekhin

    01/21/2021, 8:16 PM
    Friends, prisma makes it a lot easier to create an application by generating types based on my models. But is it possible to get classes of these models from somewhere? To conveniently create the necessary model instances
    d
    j
    • 3
    • 2
  • a

    Alex Reyne

    01/23/2021, 10:25 PM
    Any Prisma team members online?
    Copy code
    PANIC: index out of bounds: the len is 1 but the index is 1
    
    This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
    j
    • 2
    • 1
  • a

    Alex Reyne

    01/23/2021, 10:25 PM
    Not too sure what's happening here
  • y

    Yiğit Rüzgar

    01/24/2021, 12:56 PM
    I want to return the value I show here to a variable. When the user selects "show what happened after this date" from the form, I want to dynamically return the value I marked on the screen to parameters such as "gte", "lte", "lt" at run time. How do I assign a variable and pass a value to this variable, rather than assigning a fixed value to the place I marked?
    r
    • 2
    • 3
  • h

    Harish Kumar

    01/24/2021, 3:12 PM
    Hi All I am new to Prisma and i was looking into migrations using Prisma, for monorepos(Lerna - https://lerna.js.org/) So what i am looking for is.. that i place and maintain each model files or Prisma schema files under its own model specific folder which relates to the feature or resource. For example: User Module will have its own folder and all the things realted to it including the model file. User_Hobbies will hve its own folder and all the things realted to it including the model file. So will the prisma be able to pick model/Schema Files from various folders OR i will have to place them in the same folder, So that Prisma picks it up from the common model folder.
    r
    • 2
    • 2
  • j

    Jan Wilhelm

    01/24/2021, 8:27 PM
    hey guys! Has anybody implemented SMS verification / 2FA in NodeJS? Currently looking into it, and came across Twilio Verify. Does anybody have experience with using them that you might want to share? Thanks!
  • t

    Tarik Brat

    01/24/2021, 8:59 PM
    Greetings guys, I was wondering if I'm connecting relation node which I fetched from base to new node that I'm creating, does it automatically fills relation fields?
  • c

    Chase Roossin

    01/24/2021, 11:00 PM
    Hi all. I am trying to deploy my express backend to elastic beanstalk and am seeing this rather vague errors... works perfectly fine locally... anyone have a hunch as to why im getting this on post install scripts?
    Copy code
    Environment variables loaded from .env
      Prisma schema loaded from prisma/schema.prisma
      info The postinstall script automatically ran `prisma generate`, which failed.
      The postinstall script still succeeds but won't generate the Prisma Client.
    r
    t
    • 3
    • 15
  • c

    Chase Roossin

    01/24/2021, 11:08 PM
    seems possibly related: https://github.com/prisma/prisma/issues/2049
  • k

    KJReactor

    01/25/2021, 3:01 AM
    is there a way to use
    orderby
    on an relation's field?
  • i

    inlightmedia

    01/26/2021, 6:36 PM
    I’m trying to use a custom user name to setup prisma1. If I use postgres as the username, the prisma docker container connects with the postgres docker container and all goes well and the prisma database is created. But as soon as I try to use another username as the database user in postgres and in the user field of the prisma config it fails to create the prisma database with the following error: Exception in thread “main” org.postgresql.util.PSQLException: ERROR: permission denied for database prisma Any ideas?
    r
    • 2
    • 2
  • c

    Caleb Hyatt

    01/26/2021, 9:45 PM
    Good afternoon! I'm working on a project and am using Prisma 2 as the primary database messenger, and I came across this error that I can't find a solution to. Any advice? 😄
    Copy code
    PrismaClientValidationError: 
    Invalid `prisma.member.findUnique()` invocation:
    
    {
      where: {
    ?   username?: String,
    ?   id?: Int,
    ?   email?: String
      }
    }
    r
    m
    • 3
    • 2
  • r

    ryan

    01/27/2021, 2:01 PM
    👋 Hello everyone! We've just published a new guide video that goes into detail about the new Group By feature that is available at Prisma 2.14. Group By is great for aggregating and filtering on a specific table. If you're interested in the feature, this video should get your well on your way.

    https://youtu.be/BdlCPdPaorY▾

    prisma green 9
    prisma rainbow 3
    fast parrot 7
    📺 4
    ❤️ 2
    🚀 5
    👍 2
  • b

    Bamboozilla

    01/27/2021, 2:56 PM
    hi everyone ! We have been trying to make
    @prisma/cli
    work inside docker for a few days now. Could anybody from the prisma team take a look at it ? Here is a minimal repro : https://github.com/svelters/prisma-poc
    d
    • 2
    • 5
  • b

    Bamboozilla

    01/27/2021, 2:57 PM
    it really seems like a prisma installation bug
  • b

    Bamboozilla

    01/27/2021, 2:57 PM
    creating an issue in the meantime ...
  • b

    Bamboozilla

    01/27/2021, 3:06 PM
    if anybody regulary using docker can try the repro, it would be appreciated Here is the issue if you can confirm it's happening on your system too: https://github.com/prisma/prisma/issues/5304
  • m

    Michael buller

    01/27/2021, 6:35 PM
    Is there a channel or specific place where I can discuss prisma introspection and scope? We need the ability to break a prisma.schema up into multiple files to limit the context that it tries to handle. I am currently working on a project where the introspection just pulled in 1000 tables and vscode is dying. I only need access to about 10 of these tables, but prisma seems to want to delete the tables if I introspect and then remove the 98% I didnt need.
    n
    • 2
    • 1
  • m

    Martin Šošić

    01/27/2021, 7:00 PM
    We would like to use sqlite for local development, but postgresql for production -> how should we go about it? I see that database
    url
    in datasource block can be defined via an ENV var, which is great, but
    provider
    can't, which means it is fixed.
    n
    • 2
    • 4
  • p

    Philipp Rajah Moura Srivastava

    01/27/2021, 9:49 PM
    hey prisma! Just a quick question. I have an array that holds connection to users. I’m seeing that if I add a user to an array it can not be added a second time. I checked that the resolver fires and that theres no errors.
    n
    • 2
    • 2
  • k

    Kranthi Kiran

    01/28/2021, 6:59 AM
    Hi team. just discovered prisma and looks pretty awesome. I'm looking for an example with classes and functions. For example a User class which has functions like • verifyEmail - checks if the email exists in the database • enrichEmail - calls an external api (like hunter.io) to get user profile • notifyUser - sends an email to the user Would really appreciate a well documented example, (not limited to the orm section).
    n
    m
    • 3
    • 3
  • t

    Tony D'Addeo

    01/28/2021, 3:44 PM
    We were using nexus-plugin-prisma but have decided to remove it as the maintainers work on their new vision. It’s been mostly smooth sailing, but one thing I haven’t found a clean way to do is map enum types between the Prisma and Nexus schema. Right now I’m just have those definitions duplicated in both places but not connected in any sort of way. Is there a better way to do this?
  • s

    Stephen Jensen

    01/28/2021, 4:33 PM
    Hi everyone! I just finished a course on building a fullstack Next.js application that uses Prisma 2 on the backend and I thought that you'd be interested in a coupon to get the entire course for free on Udemy until 1/30 10am PST. Here's the link with the free coupon to Udemy We go over how to set up Prisma 2 in a Next.js API function with a single GraphQL endpoint and connect it to a Postgres database. We then add access permissions to our resolvers with a user object from Auth0 and build out the entire UI using Tailwind. Enjoy!
    prisma cool 4
    🎓 5
    prisma rainbow 5
    🌶️ 3
    💚 2
    😍 3
    alphabet white h 1
    alphabet white k 1
    alphabet white u 1
    fast parrot 3
    ❤️ 5
    alphabet white n 1
    alphabet white y 1
    alphabet white a 1
    alphabet white o 1
    alphabet white t 1
  • i

    Iain Collins

    01/28/2021, 5:14 PM
    Hello everyone! I finally found time to accept my invite from @tim2 (thanks Tim!) I'm the original lead behind "NextAuth.js", though in practice @Balázs Orbán has been leading on in the last couple of months! Look forward to catching up and seeing what folks are up to!
    🙏 8
    🦜 3
    🔥 6
    prisma rainbow 1
    👋 3
1...413414415...637Latest