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

    Dadi Atar

    07/03/2019, 12:37 PM
    Hey, what's up with graphqlgen? Is 0.6.0 planned to be released soon?
    • 1
    • 1
  • k

    koia

    07/03/2019, 4:22 PM
    Hi, why not to use the Svelte route and build everything at "compile" time? 🤔
  • n

    Neeraj Sewani

    07/03/2019, 5:18 PM
    Hi everyone!
  • n

    Neeraj Sewani

    07/03/2019, 5:21 PM
    I am having a problem in linking the two types using @relation. It is not creating any columns in the database.
  • n

    Neeraj Sewani

    07/03/2019, 5:22 PM
    -.php
  • n

    Neeraj Sewani

    07/03/2019, 5:38 PM
    I am taking a course in which the instructor is using prisma v1.12.0 and there the relationships between the types were inferred automatically by prisma and a separate table was made in the database but in my version of prisma v1.34.0 no extra tables are getting created. Has this functionality been removed in the latest versions? If yes then can anyone send a snippet which achieves the same result. Moreover, I was doing @relation(link:"INLINE", name:"Post") in the list
    posts
    in User type but it was showing an error saying that both the types should contain relations with the same name. Is it compulsory to have opposite lists with relation annotation in either model?
  • v

    Vitaliy K.

    07/03/2019, 5:50 PM
    Hi I am using prisma 1.34 but deploy is not working now. This is my error when I "prisma deploy" ERROR: No cluster could be found for workspace '*' and cluster 'default' { "data": { "generateClusterToken": null }, "errors": [ { "message": "No cluster could be found for workspace '*' and cluster 'default'", "locations": [ { "line": 3, "column": 9 } ], "path": [ "generateClusterToken" ], "code": 222 } ], "status": 200 }
    k
    • 2
    • 16
  • v

    Vitaliy K.

    07/03/2019, 5:50 PM
    I am using Ubuntu
  • h

    Herbert Pimentel

    07/04/2019, 2:00 AM
    I am using ubuntu, did anyone made this prisma2 init projectname work !? I configure everything but always when I try to introspect I get the "Error in lift engine" how can I track it down ?! I really wanna try it
    b
    • 2
    • 7
  • a

    Awey

    07/04/2019, 5:02 AM
    Hello!
  • a

    Awey

    07/04/2019, 5:04 AM
    Copy code
    type User @db(name: "user") {
      id: ID! @id
      name: String! @db(name: "full_name")
    }
  • a

    Awey

    07/04/2019, 5:05 AM
    Anyone know why the following code messes with syntax highlighting in the datamodel.prisma file?
  • a

    Awey

    07/04/2019, 5:06 AM
    Copy code
    Unexpected token. Expected one of: Start of block ("{").
    being directed towards the "@"
  • s

    Slackbot

    07/04/2019, 7:34 AM
    This message was deleted.
    e
    • 2
    • 1
  • j

    Jeany Meza

    07/04/2019, 8:22 AM
    I’m trying to implement subscriptions at the graphql-yoga graphql api gateway but need to parse the data from Prisma subscriptions. I am unaware of the best practices to doing so. I looked into the examples and tutorials available but had no luck finding an example of how might it work. Could you give me an insight of how should it be done?
  • m

    Morten Bo Rønsholdt

    07/04/2019, 9:32 AM
    is there any way to do something like this?
    Copy code
    type Offer {
        id: ID! @id
        createdAt: DateTime! @createdAt
        updatedAt: DateTime! @updatedAt
        trackId: ID! @id
    }
    ie. when creating an
    Offer
    auto-generate both
    id
    and
    trackId
    . currently I get an error when trying to do something like that:
    Copy code
    (node:29091) UnhandledPromiseRejectionWarning: Error: Whoops. Looks like an internal server error. Search your server logs for request ID: local:cjxogyk7q004k0889ugcqgqjo
    for example, something like this:
    trackId: String! @default(uuid()) @id @unique
    p
    j
    • 3
    • 7
  • e

    Ehsan sarshar

    07/04/2019, 9:58 AM
    if prisma mongo connector not support CASCADING then what should I do to delete comments if a user is deleted
  • o

    Olaf

    07/04/2019, 10:16 AM
    I’m hopeful somebody could tell me if it is possible to
    connect
    via a unique key like ‘name’ rather than the the
    id
    generated for a record. In my case, a mutation adds a user to a category (two ‘tables’ if you will), I want to connect the user to this category using the name of the category (a
    String! @unique
    ) but find myself having to reference the category by its
    id
    column instead. Is there a way it can accept either of the two (using enums won’t help me much as each category has more fields)? If not, how do people solve it? Will I have to use expensive
    where
    queries to find the
    id
    for a specific category name? Thanks.
    g
    • 2
    • 1
  • k

    Kianoosh

    07/04/2019, 11:03 AM
    Hey guys, is it possible to connect to a remote PostgreSQL database which is running on prisma cloud with something like
    pg
    ? I need to do some raw queries...
    h
    k
    • 3
    • 24
  • h

    Hebilicious

    07/04/2019, 12:34 PM
    Hello, does anyone knows if it possible to tell prisma to user an inner join instead of a left join for some queries when you’re using a SQL db such as postgres ?
    s
    • 2
    • 4
  • p

    Pedro Jardim

    07/04/2019, 7:27 PM
    Hi guys, anyone had problems of deploy and import data to a Postgres DB, that is not at the same Docker? Ex: Prisma Server on a Docker and the Postgres as another service. The Deploy is veeery slow, and the second deploy throws a server error. The import also give us an error. The second config, Prisma Server and the Postgres on the same Docker. Everything works fine. The deploy and import.
  • g

    gem

    07/05/2019, 1:16 PM
    Copy code
    const updateMany = prisma.updateManyOrders({ where: { ... }, data: { priority: $theirPriority - 1 });
    is it possible to do this kind of algo with prisma ? without having to update each record
  • s

    ScottAgirs

    07/05/2019, 8:03 PM
    Hey folks, after running
    prisma2 init app
    and entering all the DB credentials it generates
    project.prisma
    file and stops the process, without giving the option to choose Prisma tools (Photon/Lift) - any ideas anyone?
  • s

    ScottAgirs

    07/05/2019, 9:02 PM
    (Error), code: .., message: \"relation \\\"prisma-hello.User\\\" does not exist\", detail: None
    Just followed the Prisma2 Github tutorial, getting the above error on
    npm start
    Please check this thread for details.
    t
    • 2
    • 7
  • s

    Simon StenbĂŚk Madsen

    07/06/2019, 5:11 PM
    Hey all. I’m trying to filter on a relation. I have a model Lesson, which has a relation “difficulty”. I want to be able to filter on lessons, by one or more difficulties, or none. Is this possible with one query? ``
  • s

    Simon StenbĂŚk Madsen

    07/06/2019, 5:14 PM
    I’m able to filter correctly if I provide an array of valid slugs. But how about none? Can this be done without changing the query? example: query lessons( $difficulty: [String!] ){ lessons( where: { difficulty: { slug_in: $difficulty } } ){ ... } }
  • e

    Ehsan sarshar

    07/07/2019, 8:33 AM
    can't scroll in Prisma-Playground
  • k

    koia

    07/07/2019, 2:55 PM
    I really like prisma from the technology stand point, but it doesn't matter how many times people try to explain it to me, I don't see the point of the proxy server, between my node server and the DB in a production environment (in development is helpful), in production it seems like a waste of resources to me and a bottleneck. I've tried some app for example in prisma cloud and done some tests with it and the response time is so inferior comparing it to a configuration GraphQL Node Server > Postgres... I can't wait for Prisma 2.
  • v

    vacom

    07/07/2019, 5:27 PM
    Is there plans to release Prisma Day videos?
    👍 1
  • m

    Michael Auderer

    07/07/2019, 6:05 PM
    I’m a little confused on the nexus-prisma situation for prisma2. Are we supposed to use
    objectType
    from
    @nexus/prisma
    ? Or should we use
    prismaObjectType
    from
    nexus-prisma
    as before?
    y
    • 2
    • 3
1...289290291...637Latest