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

    Mike

    06/22/2019, 12:15 AM
    Hi Prisma team (@nilan @schickling @divyendu @Etel @nikolasburk), I see that the docs relating to server-side subscriptions were removed in v1.26.5 https://github.com/prisma/prisma/commit/2e11837cc9be71672b5e791e16f007d3f7091dcd#diff-50ecc9d57530b3f6fa0c13c8c546fb58 I'm wondering if that's a subtle way of saying those are deprecated and will no longer be supported in the future? Is Prisma still committed to supporting the use case of reactive programming around the database? This was a first-class use case for Graphcool and I was glad to see that it made it into Prisma 1. So far, I haven't seen any mention of it for Prisma 2 and I'm beginning to fear the worst, that it was "disappeared" and excised from history by the Ministry of Truth. Hopefully the Prisma team can prove me wrong and is actually planning a big upgrade to their server-side subscriptions for Prisma 2 đŸ™đŸ€ž
    👀 1
    n
    • 2
    • 3
  • s

    shiftcard

    06/22/2019, 12:33 AM
    hello everybody
  • s

    shiftcard

    06/22/2019, 12:33 AM
    can I ask something about prisma?
  • s

    shiftcard

    06/22/2019, 12:37 AM
    can_i_use_this_mutation_.js
    m
    • 2
    • 2
  • s

    shiftcard

    06/22/2019, 1:12 AM
    thank you for your applying
  • s

    shiftcard

    06/22/2019, 1:12 AM
    but still got a error
  • s

    shiftcard

    06/22/2019, 1:12 AM
    error.js
  • s

    shiftcard

    06/22/2019, 1:13 AM
    when I create mutation 100 data, I don't have any error
  • s

    shiftcard

    06/22/2019, 1:14 AM
    but when I control many data(example over 1000 data) I got a error
  • s

    shiftcard

    06/22/2019, 1:18 AM
    sometime |I got this kinds of error
  • s

    shiftcard

    06/22/2019, 1:18 AM
    error.txt
  • f

    fuchenxu

    06/22/2019, 11:05 AM
    Hey everyone, I noticed the latest Prisma required that @relation link mode is mandatory but only on one side, however, my existing MongoDB has two models that are bidirectionally referenced (Message model has an array of Comment IDs, and Comment has its Message ID), ao how should I write the Prisma schema?
  • j

    Jay

    06/23/2019, 1:24 AM
    Hi, why no mentions of Union or Interface types in the Prisma 2 docs?
  • j

    Jay

    06/23/2019, 1:25 AM
    There's a "current limitations" document but I did not find it there either. Puzzling, since this is one of the most asked for (if not the most asked for) missing feature in the current data model implementation 😕
  • j

    Joseph

    06/23/2019, 5:28 AM
    I have my array of enums working perfectly in GraphQLPlayground, but can't seem to get them working client-side. Is there a known bug dealing with arrays of enums? Pretty much something like this https://www.prisma.io/forum/t/query-and-filter-enum-lists-in-prisma/5342
    b
    • 2
    • 11
  • l

    lewisedc

    06/23/2019, 11:42 AM
    How can I create a rest api and a graphql api which hit the same database?
  • a

    andrux

    06/23/2019, 9:23 PM
    hi, anyone knows how to provide a variable for a query when wrapping the component with
    graphql
    ?
  • a

    andrux

    06/23/2019, 9:23 PM
    like this
  • a

    andrux

    06/23/2019, 9:26 PM
    Copy code
    ...
    const CONVERSATIONS = gql`
      query GetConversations($userId: ID!) {
        conversations(
          where: {
            members_some: {
              id: $userId
            }
          }
        ) {
          id
          members {
            id
            handle
          }
          messages(last: 1) {
            id
            text
            sender {
              display
            }
            createdAt
          }
          createdAt
        }
      }
    `
    
    export default graphql(CONVERSATIONS, { name: 'conversationsQuery' })(Chat);
  • a

    andrux

    06/23/2019, 9:26 PM
    the variable
    $userId
    comes from a previous screen’s props
  • a

    andrux

    06/23/2019, 9:29 PM
    I know I can add a hardcoded variable to the graphql call, like
    export default graphql(CONVERSATIONS, { name: 'conversationsQuery', variables: { userId: "" } })(Chat);
    or similar — I had it like that before and it worked but a hardcoded id won’t help 😞
    • 1
    • 2
  • a

    Adam Woods

    06/23/2019, 10:11 PM
    Has anyone had experience with deploying Prisma on AWS Fargate or EC2? And if so, do you have experience scaling it horizontally?
    t
    • 2
    • 2
  • b

    Bill Pliske

    06/24/2019, 1:23 AM
    Yo, my fellow prisma peeps. Sincere apologies in advance for the dumb question. Just recently got on to Digital Ocean. I’ve SSH’d into my droplet successfully 
 and now I want to exit. It’s nuts. I’ve tried
    exit
    ,
    logout
    , quitting terminal 
 you name it. But whenever I restart terminal, or even the terminal in VS Code 
 it pops me right back into my SSH root in DO. So weird. Thoughts?
  • a

    Andre Coetzee

    06/24/2019, 8:49 AM
    @Bill Pliske ctrl+c should exit the pod to local terminal
  • j

    jdoyle112

    06/24/2019, 2:47 PM
    Does anyone in here host their prisma servers on aws using apex up?
  • j

    jdoyle112

    06/24/2019, 2:48 PM
    It seems like my server “falls asleep” when it’s been innactive for a while. This causes the next 1st request to either be really slow or just receive a 502 error. Just wondering how to fix this
  • t

    tkvw

    06/24/2019, 3:49 PM
    where can I find the sources of
    prisma2
    ? Is it the alpha branch?
    d
    • 2
    • 2
  • b

    Bill Pliske

    06/24/2019, 4:02 PM
    @Andre Coetzee: This goes way because the simple stuff. I did that, and it immediately logs me back in. Same thing happens when I exit. Says it's exiting, then logs me right back in. Crazy.
  • a

    Alvar Lagerlöf

    06/24/2019, 4:51 PM
    The website is confusing, can I use prisma with GraphQL or what? I am considering this instead of Relay? Are those even comparable?
    n
    • 2
    • 5
  • v

    vjsingh

    06/24/2019, 5:27 PM
    Switching over to nexus-prisma. Anyone get this complaint from their typescript compiler? “Expression produces a union type that is too complex to represent.”
    d
    b
    d
    • 4
    • 13
1...285286287...637Latest