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

    evondev

    04/24/2019, 11:03 AM
    I want to use private server to build my project to production ? anyone has a link ? Thanks
    t
    • 2
    • 1
  • d

    Devion Villegas

    04/24/2019, 11:17 AM
    How do you opt out of telemetry for the main prisma server/workers running on java. Right now I have a slow memory leak that eventually crashes the server because it can't phone home due to my strict firewall rules.
  • a

    Andrei Bacescu

    04/24/2019, 12:28 PM
    Hello guys! I know currently Prisma doesn't support ordering by multiple scalars fields, (see this issue: https://github.com/prisma/prisma/issues/62). But, I'm wondering if there is someone who found a solution to work around this issue without using executeRaw mutation (raw SQL) because I have many places in my code where I need to order by multiple fields and I don't want to use executeRaw in so many places. I will appreciate any suggestions. Thank you!
  • c

    Chinmay Ajit Acharya

    04/24/2019, 12:51 PM
    Does Prisma have any mechanism to restrict particular user for deletion of entries?
    n
    • 2
    • 1
  • k

    kamalhunzai

    04/24/2019, 1:33 PM
    https://app.vanhack.com/invite/kamalhus Join Vanhack to get hired
    🚯 4
  • n

    Nelson Pecora

    04/24/2019, 3:50 PM
    Hi all! I just upgraded to Prisma 1.31 / Datamodel 1.1 and I'm getting some weird errors when I try to deploy (I completely rewrote my
    datamodel.prisma
    to fit the new spec, and wiped all the tables in my database). Here's my error:
    Content
    ✖️ The relation field
    bundle
    must specify a
    @relation
    directive:
    @relation(name: "MyRelation")
    In my datamodel, this is how I specified `Content`:
    Copy code
    type Content @db(name: "content") {
      id: ID! @id
      contentType: ContentType! # ENUM
      bundle: Bundle @relation(link: INLINE)
      image: Image @relation(link: INLINE)
    }
    Am I missing something obvious?
    bundle
    and
    image
    are 1:1 relations.
    👍 1
    j
    • 2
    • 6
  • n

    Nelson Pecora

    04/24/2019, 4:00 PM
    Ok, last Datamodel 1.1 question: The docs say
    @id
    can be used on
    ID
    ,
    UUID
    , and
    Int
    , but I get this error when I try that:
    The field
    fooID
    is marked as id must have one of the following types:
    ID!
    ,
    Int!
    .
    Will
    fooID: ID! @id(strategy: NONE)
    allow me to set UUIDv4 IDs on this?
  • j

    James Bellamy

    04/24/2019, 4:01 PM
    Datamodel 1.1 and Prisma 1.31 are causing massive issues for me with the use case of Existing Postgres Database. Primarily the issue seems to be with relation fields, link tables are being added to the migration from
    prisma deploy
    which doesn’t really work with an existing database as I don’t want prisma modifying the database. I’ve been unable to rollback to a previous working version of prisma and the datamodel, and can’t run my production setup so my site is currently offline as a result =/
  • r

    rem

    04/24/2019, 4:43 PM
    How do I update prisma on a self-hosted (heroku) instance? @Harshit got me set up and I can't remember at all how it was done
    j
    h
    • 3
    • 4
  • f

    Francis John

    04/24/2019, 9:30 PM
    👋 I’m trying to accomplish a nested upsert . Basically I want to create a
    Post
    where each post has many `Tag`s. It looks like I have to use a workaround via https://github.com/prisma/prisma/issues/2194 which requires I check for existence of each tag and use
    connect
    or
    create
    depending on existence of each tag. Does that mean I have to make a DB call for each tag I want to upsert (e.g. 10 tags requires 10 existence checks)?
  • m

    Mike Shreek

    04/25/2019, 12:59 AM
    Hi guys, quick question: Can I get away with Yoga over Prisma setup on AWS free tier?
  • m

    Mike Shreek

    04/25/2019, 1:00 AM
    I use this tutorial's setup: https://advancedreact.com/
    j
    • 2
    • 1
  • m

    Mike Shreek

    04/25/2019, 1:01 AM
    Which uses Graphql Yoga over Prisma.
  • e

    evondev

    04/25/2019, 5:17 AM
    Has anyone know how to fix prisma still loading on locally
  • k

    kitze

    04/25/2019, 7:53 AM
    Why doesn’t Prisma automatically default to either
    TABLE
    or
    INLINE
    for relation (whatever was the default behaviour before the syntax change)?
    m
    • 2
    • 9
  • n

    Nicholas Lawrence

    04/25/2019, 10:33 AM
    Hello everyone!
  • n

    Nicholas Lawrence

    04/25/2019, 10:39 AM
    First off, Prisma is an amazing tool! But I also have a question, that I would be forever grateful if someone could answer! In my datamodel, I would like to define a type that can hold an array of multiple other types. For example:
  • n

    Nicholas Lawrence

    04/25/2019, 10:40 AM
    -.js
    a
    • 2
    • 5
  • n

    Nicholas Lawrence

    04/25/2019, 10:40 AM
    Is it possible to define flownBy on the AirCraft type in this way?
  • s

    sarink

    04/25/2019, 11:36 AM
    is graph.cool dead? i was searching for a serverless graphql cloud, stumbled upon graph.cool, read through some tutorials, started setting up a project... and eventually needed to make an account for the graphcool-cloud, when i discovered that the service has been disabled (or, at least they're not allowing new registrations). so i decided to give prisma a try, but prisma seems to require a server? how can prisma be a replacement for graphcool if graphcool is serverless and prisma is not? 🤔 am i missing something?
    t
    h
    c
    • 4
    • 12
  • j

    Justin Voitel

    04/25/2019, 6:16 PM
    Hey everyone, I followed the tutorial from this auth boilerplate -> https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-auth Everything is working quite well except the part with JWT. For some reason my jwt token doesnt get passed to the header (e.g. when iam logging in) so my
    context.headers['Authorization']
    is always
    undefined
    . Chrome also shows me: 'Provisional headers are shown' in the Network section so it might get blocked by something? (Maybe by CORS ?) Help would be much appreciated 🙏
  • s

    Stephen Jensen

    04/25/2019, 6:28 PM
    Can you console.log the entire headers? I’ve sometimes seen problems with capitalization on the a/A in authorization
    j
    • 2
    • 1
  • t

    TangoJuliett

    04/25/2019, 6:36 PM
    Who can I get in contact with ASAP to get (and pay for) real-time support?
    👍 1
    j
    • 2
    • 2
  • c

    captaindaylight

    04/25/2019, 10:12 PM
    Is there no relations data model for relations in Postgres? when I see it under mysql but not postgres: https://www.prisma.io/docs/1.31/datamodel-and-migrations/datamodel-MYSQL-knul/#relations
    b
    • 2
    • 2
  • g

    goonit

    04/26/2019, 2:05 AM
    How would I go about upgrading the version of prisma that's running on a heroku instance?
  • g

    goonit

    04/26/2019, 2:05 AM
  • g

    goonit

    04/26/2019, 2:06 AM
    I can see it in my prisma dashboard, but need to upgrade it to 1.31
    j
    • 2
    • 1
  • c

    CCBCodeMonkey

    04/26/2019, 4:05 AM
    @goonit you have to follow some weird instructions on a tutorial
  • c

    CCBCodeMonkey

    04/26/2019, 4:05 AM
    let me find it
  • c

    CCBCodeMonkey

    04/26/2019, 4:06 AM
    https://github.com/prisma/prisma-cloud-feedback/issues/202
1...260261262...637Latest