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

    Samrith Shankar

    02/24/2020, 1:29 AM
    Can you send your schema in DM @yassine
  • s

    Samrith Shankar

    02/24/2020, 1:30 AM
    Is there anyone here who can review my data model? I’m still getting a hang of Prisma 2, so I’d love to have feedback.
  • h

    hueuebi

    02/24/2020, 1:30 PM
    Hi
  • h

    hueuebi

    02/24/2020, 1:30 PM
    can anyone help me here?
  • h

    hueuebi

    02/24/2020, 1:30 PM
    prisma deploy bash: prisma: command not found
  • h

    hueuebi

    02/24/2020, 1:30 PM
    I addad prisma with yarn
  • h

    hueuebi

    02/24/2020, 1:30 PM
    prisma deploy however is not found
    n
    w
    • 3
    • 29
  • h

    hueuebi

    02/24/2020, 1:31 PM
    also, what would be the best way to open .prisma files in webstorm? (for correct syntax highlighting?)
  • p

    Prakash Wagle

    02/24/2020, 6:22 PM
    Is there any timeline on #prisma2-preview Mongodb support ???🚨
  • a

    Ashiqur Rahman

    02/25/2020, 4:44 AM
    anyone can give me any example where different database is used for unit testing. I don't want to mutate actual database while testing! may be different docker-compose file is the way to go. I need some example
    t
    • 2
    • 1
  • a

    Ashiqur Rahman

    02/25/2020, 6:42 AM
    no one 😢
    r
    • 2
    • 1
  • b

    boomba

    02/25/2020, 9:38 AM
    hi
    👋 1
  • v

    Vaish

    02/25/2020, 4:16 PM
    Hello all, I have MySQL DB running on a docker container. I can connect to it as localhost on port 3307 using any DB client. However when trying to have prisma connect to it, gives me an error "ERROR: for prisma_user_poc_mysql_1 Cannot start service mysql: driver failed programming external connectivity on endpoint prisma_user_poc_mysql_1 (95c27ada6526c54e6a54cd4b6136f1c62070e72bce9ee80ca0630d5b273cefc9): Bind for 0.0.0.0:3307 failed: port is already allocated ERROR: for mysql Cannot start service mysql: driver failed programming external connectivity on endpoint prisma_user_poc_mysql_1 (95c27ada6526c54e6a54cd4b6136f1c62070e72bce9ee80ca0630d5b273cefc9): Bind for 0.0.0.0:3307 failed: port is already allocated"
  • v

    Vaish

    02/25/2020, 4:16 PM
    Can someone help?
  • v

    Vaish

    02/25/2020, 4:17 PM
    Here is my docker-compose yaml file
    docker-compose.yml
  • w

    windkomo

    02/25/2020, 4:56 PM
    is it possible to generate typescript code for schema.graphql mutations and queries ?
    l
    • 2
    • 7
  • p

    Peter T

    02/25/2020, 6:38 PM
    anyone here ?
    👋 4
  • c

    cory

    02/25/2020, 8:15 PM
    Just trying this for the first time. Trying to get prisma to init with an existing database. It works when I use a new database, but not an existing one. Here’s an error if anyone’s willing to take a look:
  • c

    cory

    02/25/2020, 8:15 PM
    https://gist.github.com/counterbeing/d1b8820449314c3c32de71347c1a948f
  • h

    hueuebi

    02/25/2020, 8:23 PM
    what is the best way, to wrap an existing rest endpoint?
  • h

    hueuebi

    02/25/2020, 8:24 PM
    with GraphQL, you guys have any nice ressources for me?
  • h

    hueuebi

    02/25/2020, 8:24 PM
    I found https://www.prisma.io/blog/how-to-wrap-a-rest-api-with-graphql-8bf3fb17547d so far
  • s

    Samrith Shankar

    02/25/2020, 11:56 PM
    @cory i’d suggest using Prisma 2, which is much better in terms of introspection, if your DB is Postgres or MySQL
  • c

    cory

    02/25/2020, 11:56 PM
    Gotcha. Thanks @Samrith Shankar. Sounds like it’s not quite ready for prod yet, and i’m trying to build an app for prod. So i’m not sure if i should go into that.
  • s

    Samrith Shankar

    02/26/2020, 1:10 AM
    It’s in a decently good state right now. I am currently building an app for prod on it.
    o
    • 2
    • 2
  • i

    Ian Goh

    02/26/2020, 2:02 AM
    Anyone have any issues with the demo cloud servers recently? Been getting time out issues where i had no issues previously.
    k
    l
    a
    • 4
    • 14
  • j

    Jonathan

    02/26/2020, 9:08 AM
    Im a bit confused on when to define our model in a
    datamodel.prisma
    using model vs when to use type. I saw somewhere syntax using
    model
    , and my VSCode's linter seems to scream everytime I use type in a
    .prisma
    file
  • z

    zinger

    02/26/2020, 9:16 AM
    Hi all, just deployed my Postgres database to Heroku and running Prisma locally.
    prisma deploy -e .env
    worked fine, but now trying to run
    prisma seed --reset -e .env
    and getting the following error:
    Copy code
    Seeding based on tsnd ./prisma/seed.ts...(node:87448) UnhandledPromiseRejectionWarning: Error: Your token is invalid. It might have expired or you might be using a token from a different project.
    I have a
    PRISMA_SECRET
    set in
    prisma.yml
    . I also had a
    PRISMA_MANAGEMENT_API_SECRET
    in my
    docker-compose.yml
    , but read that that won’t work locally so removed it (thought that would fix). Any help would be great as I’ve tried a bunch of stuff and am pretty stuck. Thanks!
  • a

    Alan

    02/26/2020, 10:23 PM
    I was hoping someone could help and provide where the
    queueSize
    variable gets plugged in for Prisma
  • a

    Alan

    02/26/2020, 10:23 PM
    I'm currently using the prisma-prod image in our k8s cluster
1...348349350...637Latest