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

    Adriano Resende

    04/06/2020, 12:32 AM
    that’s only a user who can have the value OWNER
  • h

    Hendy Irawan

    04/06/2020, 1:46 AM
    Hi all, thanks for releasing Prisma v2 as beta
    🙌 2
  • t

    Tristan

    04/06/2020, 11:18 AM
    Im not sure if this is the spot for this question, but I dont know anywhere else Im trying to set up a Nexus server with Graphql yoga and Prisma. The Nexus docs are a bit sparse and the examples link is broken Does anyone know where I can find some nexus examples?
    r
    n
    • 3
    • 11
  • b

    Benjamin C

    04/06/2020, 2:56 PM
    Hello guys, i would like to know if some of you have already test to hot-plug new services into a gateway server with prisma and how ?
  • g

    Giorgio Delgado

    04/06/2020, 4:27 PM
    Does graphql-yoga (or hasura) integrate well with prisma? What are your experiences?
    c
    • 2
    • 1
  • i

    ivanrodricalleja

    04/06/2020, 6:09 PM
    Hi guys, first of all congratulations for this amazing tool. I have a question related to nexus-prisma. I have been trying to add connectionPlugin to my
    t.crud.series()
    but it has been impossible. I don't get any error maybe it is because i am using something wrong but my first question is: Could these 2 plugins be combined? Here is the repo: https://github.com/IvanRodriCalleja/prisma-series The repo has not the connectionPlugin because it didn't works/fails but i can push a branch
  • m

    Marwan Roushdy Ahmed

    04/07/2020, 1:03 AM
    Has anyone been able to integrate prisma with feathersJS?
  • m

    Marwan Roushdy Ahmed

    04/07/2020, 1:03 AM
    Looking for a how to guide on creating a prisma adapter for feathersJS
  • m

    Marwan Roushdy Ahmed

    04/07/2020, 1:04 AM
    or any examples would be amazing
  • a

    Alex Vilchis

    04/07/2020, 4:08 AM
    Hello 👋 If I am building a production application with Nexus and Prisma, which combination should I use? • Nexus Future & Prisma 2 • Nexus Schema & Prisma 2 Thank you
  • a

    Aashish Jain

    04/07/2020, 7:06 AM
    One of my friends made this walkthrough on the prisma examples repo and I thought it was really helpful for me getting started, so I’ll link it here in case anybody else finds it useful: https://usecodeflow.com/tutorials/view/prisma/prisma-examples/tree/363fe0/ck89d0r6r00000vlakovqxcqv
    👍 1
  • u

    Ugogo

    04/07/2020, 7:43 AM
    👋 I deployed my first service into Prisma Cloud, but some mutations aren't working when hitting the cloud endpoint, but still work locally Am I missing something? Thanks 🙏
    f
    j
    • 3
    • 8
  • u

    Ugogo

    04/07/2020, 7:44 AM
    Also, a #help channel could be great since now everybody is posting this kind of messages in general 😅
    👍 7
  • p

    Patrick Moore

    04/07/2020, 7:18 PM
    Don't see a help channel so I will post here in general. I have been using prisma for an app for about a year now. It was easy to set up and has been working great for us. But we are running into some issues as our query load has increased. We are still using prisma version 1.25 Problem: Primarily we are hitting the issue where we have over 1000+ concurrent tasks for large queries with lots of nested relations and the server rejects the operations. error message akin to: ...{“exception”“java.util.concurrent.RejectedExecutionException Task slick.basic.BasicBackend$DatabaseDef$$anon$2@56b17ecc rejected from slick.util.AsyncExecutor$$anon$2$$anon$1@564fb656[Running, pool size = 10, active threads = 10, queued tasks = 1000,... Idea: batching requests using dataloader for nested non-scalar fields to stop the N+1 problem. Issues: Prisma docs say they use dataloader under the hood for batching (also very limited documentation of this) but our postgres logs seem to show that this is not working in out nested cases. Can anyone confirm that dataloader is in fact implemented and used in prisma? Has anyone been able to add batching to prisma with their own dataloader implementation? Or does anyone else have any performance optimization implementation ideas to help us with the 1000+ concurrent tasks issue?
  • a

    Alec Benzer

    04/08/2020, 1:45 AM
    Hola -- doing some research into graphql/orm tooling and trying to understand what exactly prisma offers. Right now we have a bunch of Go microservices and React frontends communicating over gRPC. • Our services use kind of a hand-rolled ORM type thing (we use gorp but it doesn't offer much), and we'd like to cut down on the boilerplate there. • The services end up needing to do a lot of fan-in before they pass stuff up the stack back to clients, and we end up having to implement our own GraphQL-esque stuff with proto fieldmasks. We'd like to move to just using GraphQL. It seems like prisma is definitely positioned to help with the first one? Does any of prisma's GraphQL stuff apply to us? Or is that JS-only?
  • r

    Rain

    04/08/2020, 3:57 AM
    Can someone share a migration guide from Prisma 1 to Prisma 2 ?
    👍 1
  • l

    Lars-Jørgen Kristiansen

    04/08/2020, 7:26 AM
    Is it possible to set sslmode in prisma 1?
    l
    • 2
    • 4
  • r

    Raluca Fleseriu

    04/08/2020, 9:45 AM
    Hello, I suddenly got this issue when trying to deploy the prod prisma env: "Creating stage default for service default ! ERROR: Token is issued in the future (iat)." Any clue how to fix it?
  • i

    iandjx

    04/08/2020, 10:29 AM
    in prisma 1 i can use
    onDelete: CASCADE
    for cascading deletes. can this also be implemented for prisma 2?
    r
    • 2
    • 2
  • a

    Ashiqur Rahman

    04/08/2020, 11:10 AM
    anyone use
    prisma-deploy
    inside gitub-action? when prisma deploy, It didn't show any error. but when trying to seed the database rt gives me
    project not found
  • c

    Chad H

    04/08/2020, 1:26 PM
    Hello, I have been getting this error message once a while. Lately, it's been happening more and more. When i get this, the solution is to wipe out everything to the docker level and re-deploy everything fro scratch. The DB would need to be backed up then restored after I reset everything. It's extremely frustrating and the solution is not doable on production. Does anyone have a way to fix this? Thank you
    Copy code
    Applying changes 10.8s
     !    The Migration failed and has not been performed. This is very likely not a transient issue.
     !    org.postgresql.util.PSQLException: ERROR: column "someTable" of relation "someRelation" already exists
     !    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
     !    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
     !    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
     !    at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
     !    at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
     !    at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155)
     !    at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:144)
     !    at slick.jdbc.StatementInvoker.results(StatementInvoker.scala:39)
     !    at slick.jdbc.StatementInvoker.iteratorTo(StatementInvoker.scala:22)
     !    at slick.jdbc.Invoker.first(Invoker.scala:30)
     !    at slick.jdbc.Invoker.first$(Invoker.scala:29)
     !    at slick.jdbc.StatementInvoker.first(StatementInvoker.scala:16)
     !    at slick.jdbc.StreamingInvokerAction$HeadAction.run(StreamingInvokerAction.scala:52)
     !    at slick.jdbc.StreamingInvokerAction$HeadAction.run(StreamingInvokerAction.scala:51)
     !    at slick.basic.BasicBackend$DatabaseDef$$anon$3.liftedTree1$1(BasicBackend.scala:276)
     !    at slick.basic.BasicBackend$DatabaseDef$$anon$3.run(BasicBackend.scala:276)
     !    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     !    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     !    at java.lang.Thread.run(Thread.java:748)
     !
    r
    • 2
    • 5
  • s

    Sebastien La Duca

    04/08/2020, 6:13 PM
    is the
    $fragment
    method on prisma operations still available in the new client?
    w
    • 2
    • 2
  • b

    Ben Awad

    04/08/2020, 6:38 PM
    Is there anywhere with more info on the query engine in Prisma 2? I read through https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/query-engine but I'm curious about the SQL generation part. Are there any examples of queries where the query planner might make different decisions?
    i
    • 2
    • 1
  • i

    Isaac Weber

    04/08/2020, 7:07 PM
    prisma 1 question: Is doing raw graphql queries against prisma any less performant than doing prisma client operations?
    Untitled
  • i

    Isaac Weber

    04/08/2020, 7:14 PM
    Prisma client 1 doesn’t allow you to get 2 things back at once. For instance
    prisma.user({id: "1234"}).business()
    this will only give you back a business based on a user id but let’s say I want both the user and business. As far as I know I can’t do that. Other than using the
    $graphql
    operation or maybe the
    $fragment
    operation. I was wondering if there is a reason for this? I could see how it could cause performance issues. So I just wanted to make sure i wasn’t shooting myself in the foot if I start using it.
    i
    l
    • 3
    • 8
  • c

    christian

    04/08/2020, 8:25 PM
    is it possible to modify the return type of crud operations generated by prisma in nexus@next? For example let’s say i want to change the return type of
    t.crud.createOneUser()
    from User to another object type
  • m

    martin

    04/08/2020, 9:27 PM
    I desperately need help with deployment. GraphQL server (using apollo-server-micro) onto Zeit’s Now platform. Any DM would be appreciated. Thanks! 🙏🏼
    i
    c
    • 3
    • 5
  • s

    Sacha Weatherstone

    04/08/2020, 11:13 PM
    A quesion about nexusjs with the prisma plugin: Say I have the following schema:
    Copy code
    model User {
      id                    String   @id @default(cuid())
      username              String
      createdAt             DateTime @default(now())
      updatedAt             DateTime @updatedAt
      groups                Group[]
    }
    
    enum Group {
      ADMIN
      RADIUS
    }
    I am able to assign multiple enum values to a user using the api or studio, however I am unsure of how to handle this in nexus. Seems as though I need a definition for Group, but don't know what fields I need.
    l
    • 2
    • 15
  • o

    Omar

    04/09/2020, 4:13 AM
    Hello , i have installed prisma on a node proyect with typescript and mongodb . We already had some data on the db. After done "npm i prisma" and "npx prisma init" i have followed the steps and get up the container , Then i used this commands : npx prisma introspect and npx prisma generate . But when i tried to deploy this happens :
  • o

    Omar

    04/09/2020, 4:13 AM
    Copy code
    $ npx prisma deploy
     ▸    Could not connect to server at <http://localhost:4466>. Please check if your server is running.
    
    Get in touch if you need help: <https://slack.prisma.io>
    To get more detailed output, run $ export DEBUG="*"
    (node:5600) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
    s
    s
    • 3
    • 3
1...361362363...637Latest