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

    KJReactor

    08/09/2020, 2:03 PM
    does Prisma expect the seed.graphql file to have a particular syntax different from GraphQL? All of a sudden It seems to complain about collons
  • j

    Jainam Mehta

    08/09/2020, 4:55 PM
    Creating stage default for service default ! ! 'ECONNREFUSED': request to http://192.168.99.100:4466/management failed, reason: connect ECONNREFUSED 192.168.99.100:4466
  • j

    Jainam Mehta

    08/09/2020, 4:55 PM
    Someone pls help me
  • r

    Roy

    08/09/2020, 9:44 PM
    Hi guys, I gave a problem understanding relations. I have a easy example about two users can participate a tennis game. So i have: 1. Model User
    Copy code
    Model User {
      id      Int @id 
      name    String 
    }
    2. Model Game
    Copy code
    Model Game { 
      id        Int @id 
      player1   PlayerInGame
      player2   PlayerInGame
    }
    3. Model PlayerInGame
    Copy code
    Model PlayerInGame {
      id      Int @id
      player  User
      game    Game
    }
    It gives me this error: Error validating model "Game": Ambiguous relation detected. The fields
    player2
    and
    player1
    in model
    Game
    both refer to
    PlayerInGame
    . Please provide different relation names for them by adding `@relation(<name>). How can i make this work...? Thanks in advance
    r
    • 2
    • 4
  • a

    Adrian Roach

    08/10/2020, 5:37 AM
    Hey peeps, if you're using Yarn 2 and noticed Prisma Client errors in regards to a
    node_modules
    directory being where it shouldn't, feel free to check out https://github.com/prisma/prisma-client-js/issues/819
    👍 1
  • j

    Jainam Mehta

    08/10/2020, 11:06 AM
    Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.
  • n

    Natalia

    08/10/2020, 3:50 PM
    👋 Join us at week’s event that are featuring or organised by Prisma: • August 11, 6PM CEST - 

    GraphQL Berlin Meetup▾

    • August 12, 6PM CEST - Building a modern backend with TypeScript, PostgreSQL and Prisma: API, Validation, and Testing - 

    A livestream by Daniel Norman▾

    • August 13, 6:15PM CEST - BudapestJS Meetup featuring Daniel Norman’s talk about Node.js development with Prisma • August 14, 4:30PM CEST - Upgrading from Prisma 1 to Prisma 2 - Workshop by Nikolas Burk Looking forward to having you there! 🤗
    👀 3
    📽️ 2
    prisma cool 4
    🤩 3
    prisma rainbow 4
  • l

    Lee Robinson

    08/10/2020, 4:38 PM
    If you want to deploy server(full) with support for connection pooling, what’s the go to with the best developer experience? Digital Ocean? RDS? I want to deploy a Prisma + Postgres database I can use with Next.js + next-auth.
    j
    a
    p
    • 4
    • 11
  • a

    Aaron Markle

    08/11/2020, 4:54 AM
    I am probably over thinking this, but is there a walkthrough anywhere for upgrading the Heroku postgres database that my prisma1 is connected to? I have reached 10,000 rows and need to upgrade to the standard plan for the db. I think I understand what to do, but just want to be extra sure
  • a

    Aaron Markle

    08/11/2020, 5:40 AM
    All went well 👍
    💯 2
    d
    • 2
    • 3
  • t

    Taylor

    08/11/2020, 11:59 AM
    Can someone please explain to me the difference between
    Copy code
    @relation(link: TABLE)
    and
    r
    • 2
    • 3
  • t

    Taylor

    08/11/2020, 11:59 AM
    Copy code
    @relation(link: INLINE)
    r
    • 2
    • 1
  • t

    Taylor

    08/11/2020, 11:59 AM
    ?
  • n

    Natalia

    08/11/2020, 3:35 PM
    🤗 GraphQL Berlin Meetup organized by Prisma starts in less than half an hour! Featuring 3 amazing speakers and a surprise giveaway.

    Tune in on Youtube▾

    !
    💯 3
    graphql 2
    🐻 1
    fast parrot 3
  • g

    gopidon

    08/12/2020, 1:14 AM
    Hi, I have prisma 1 (docker) running on a digital ocean droplet. Any idea on how to enable https for this?
    t
    • 2
    • 1
  • j

    Jakob Clausen

    08/12/2020, 10:11 AM
    Hey guys! Im new to prisma and following a tutorial that is about 1 year or so old. Im using prisma 1.34 to follow along there but it´s not working that smooth. The generated datamodel.prisma file is giving me errors in vsc. I managed to get some data into my postgres database on horoku. But when i added another type in the .prisma file. no new table came with that type. Is there any good articles showing how to work with this version. Or should i just start learning 2.0?
    r
    • 2
    • 2
  • s

    stephan

    08/12/2020, 10:16 AM
    i need to extend a type (typedef - graphql file) to remove fields like password from client
    r
    • 2
    • 3
  • d

    Daniel Norman

    08/12/2020, 1:04 PM
    Join me for a livestream in 3 hours on building a modern backend with Hapi.js, PostgreSQL, TypeScript, and Prisma. This is part 2 of the series.

    https://www.youtube.com/watch?v=d9v7umfMNkM▾

    In case you missed the first part: https://www.prisma.io/blog/modern-backend-1-tsjs1ps7kip1/
    👍 2
    🚀 3
    fast parrot 3
    prisma green 2
  • e

    Etel

    08/12/2020, 4:03 PM
    Daniel is LIVE Now! 🎉

    https://youtube.com/watch?v=d9v7umfMNkM▾

    …
    fast parrot 5
  • m

    Munkhtegsh Munkhbat

    08/12/2020, 8:15 PM
    Hello community, How to implement a relationship for multiple fields that refer to the same table? I tried to search it in the docs, but didn’t find the specific example that I need. Can you point me to the right direction?
    r
    • 2
    • 3
  • v

    vancerbtw

    08/12/2020, 8:16 PM
    Hello I was wondering if anyone knew how to create a ManyToMany relation on the same table?
  • v

    vancerbtw

    08/12/2020, 8:17 PM
    Something like this, Obviously it is not how you do it but i would like to be able to query the followers and query who a user is following
    r
    • 2
    • 1
  • j

    jelder

    08/12/2020, 8:17 PM
    Quick question about JSON columns: the Prisma documentation says "Supported in MySQL 5.6+ only" for Json column type, but that was actually introduced in 5.7 as far as I can tell. Does Prisma support JSON (perhaps via text columns?) on MySQL 5.6?
    r
    • 2
    • 5
  • j

    Jayanth

    08/13/2020, 9:36 AM
    Hello everyone, I updated my datamodel.prisma but in graphql playground I dont see refresh option and I am unable to refresh schema in playground. Any ideas?
    s
    r
    • 3
    • 4
  • j

    Jayanth

    08/13/2020, 9:38 AM
    datamodel.graphql *
  • g

    Guillermo

    08/13/2020, 12:27 PM
    Hi everyone! 🙂 Any idea on how to modify the scalar mapping of "String" on schema.prisma to TEXT on SQL? Right now it's being set as varchar(191) and all I could find was "modify it manually from the database once the migrations are generated"
    r
    • 2
    • 1
  • k

    Konstantin

    08/13/2020, 12:55 PM
    this why im not using this Prisma at all, to many manual actions needed 😛
    d
    • 2
    • 1
  • a

    Alex Reyne

    08/13/2020, 2:51 PM
    Is there any more thorough documentation on ConnectOrCreate? Very new to Prisma and relatively new to JS and I'm having trouble.
    r
    • 2
    • 9
  • f

    Florian Horn

    08/13/2020, 3:42 PM
    Hello, is there a way to use a field in an update statement? e.g.: update: { counter: counter + 1}
    r
    • 2
    • 1
  • n

    Natalia

    08/13/2020, 4:03 PM
    🗣️ Prisma’s Developer Advocate, Daniel Norman, will give a talk about R*apid and type-safe Node.js development with Prisma* at BudapestJS Meetup tonight! The event starts in 15 minutes - jump in here: https://meet.google.com/osd-ayek-pfh
    fast parrot 4
1...391392393...637Latest