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

    Corjen

    12/13/2018, 9:21 AM
    Hey! Is there any comparison in terms of performance between Prisma with mongo or Prisma with postgres or mysql? Or any recommendations what type of projects are better for one or the other?
    s
    l
    • 3
    • 14
  • s

    senorcodecat

    12/13/2018, 12:50 PM
    Any announcements on release of Prisma Migrate and Prisma Admin? Would love to test as I'll be migrating an old Graphcool Cloud DB to my new Prisma server. 🙂
    👍 1
  • h

    Hyo

    12/13/2018, 3:48 PM
    Um. How do we make a query that looks like below?
    Copy code
    {
            where: { id: userId },
            data: { friends:
              { connect:
                 AND [
                  { 
                    id: friendId
                  },
                  NOT: { id: userId }
                ]
             } },
    },
    So that I don’t want to add current user as a friend inside the query.
    d
    k
    • 3
    • 9
  • d

    Daniel Mahon

    12/13/2018, 3:50 PM
    @Hyo wouldn’t you just do
    { connect: { id: friendId } }
  • d

    Daniel Mahon

    12/13/2018, 3:50 PM
    Well, glad to see I’m just now finding out about “Prisma Admin”, been working on my own Prisma (OpenCRUD) CMS, previously named “prisma-admin”… https://github.com/danielmahon/opencrud-admin
    👍 4
    h
    • 2
    • 1
  • n

    Nishchit

    12/13/2018, 5:20 PM
    Hi Great Fellows, Anybody working in SocketIO? I need your feedback on a devtool which I'm working on nowadays. 🔥
  • d

    dnbkr

    12/13/2018, 5:32 PM
    hey all - where can i find documentation for building queries like where: _every, _contains, _lte, etc?
    n
    • 2
    • 6
  • w

    woss

    12/13/2018, 5:42 PM
    How do we add mutation from generated
    prisma.graphql
    to
    schema.graphql
    ? I've tried
    Copy code
    # import * from '../generated/prisma.graphql'
    type Mutation {
      updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User
    }
    d
    • 2
    • 3
  • w

    woss

    12/13/2018, 5:43 PM
    but that makes
    graphqlgen
    get stuck on
    Mutation
    I've commented on it here, https://github.com/prisma/graphqlgen/issues/310
  • k

    Kyle Kurtz

    12/13/2018, 7:08 PM
    Hopefully an easy one - but I just spun up a new instance of prisma with mongo via
    docker-compose
    copied directly from the docs. I wasn't able to do a
    prisma deploy
    without first adding
    @id
    to the id field of the
    User
    type created by the init. Is this expected? Is mongo a good choice for a db backend if it doesn't really matter from a business perspective or would postgres be better?
    d
    • 2
    • 3
  • a

    andykay

    12/13/2018, 7:38 PM
    so do I just need
    management secret
    ? in this page it talks about just
    secret
    https://www.prisma.io/docs/prisma-client/setup/generating-the-client-rsc1/
  • a

    andykay

    12/13/2018, 7:39 PM
    are they two different things?
    • 1
    • 1
  • g

    Geoff

    12/14/2018, 12:16 AM
    Any help here would be much appreciated!
  • n

    Nick

    12/14/2018, 9:24 AM
    Question graphcool comes with couple models out of the box (File and User). Really nice if want get up running really quickly it even set up an auth with just a single click. It's literally comes with everything that you would need for building your web-app. Why is prisma not like this it comes with a simple @post model nothing more?
    h
    • 2
    • 1
  • y

    yolen

    12/14/2018, 9:52 AM
    When using the javascript prisma-client i cannot figure out how to set the PRISMA_PORT? Seems to be hardcoded. in ts I can do (my own code)
    Copy code
    const db = new Prisma({
      endpoint: `http://${process.env.PRISMA_SERVICE_NAME}:${
        process.env.PRISMA_PORT
      }`,
      secret: process.env.PRISMA_SECRET,
    })
    but in the generated javascript client this seems to be hardcoded:
    Copy code
    exports.Prisma = prisma_lib_1.makePrismaClientClass({
      typeDefs,
      models,
      endpoint: `<http://localhost:${process.env[%22PRISMA_PORT%22]}|http://localhost:${process.env["PRISMA_PORT"]}>`,
      secret: `${process.env["PRISMA_SECRET"]}`
    });
    exports.prisma = new exports.Prisma();
    d
    • 2
    • 9
  • l

    leo

    12/14/2018, 10:30 AM
    Hi guys, I'm pretty new to prisma and got this issue (https://www.prisma.io/forum/t/prismagraphql-is-in-restarting-loop-over-and-over/5067/3), too. Unfortunately, it doesn't have a solution yet, so I supplied some additional info.. Is somebody a bit more experienced than I am here using Linux/Fedora and willing to dig deeper into it?
  • p

    pllumh

    12/14/2018, 2:04 PM
    Is there anyway to create a relation with more data in the middle table ? Like creating a relation between Project and Member and having a role metadata ?
  • p

    pllumh

    12/14/2018, 2:04 PM
    Or do i have to manually create the 'middle table' like:
    Copy code
    type UserProject {
      id: ID! @unique
      member: User!
      project: Project!
      role: ProjectRoles!
    }
    n
    • 2
    • 2
  • x

    xiaoqf10

    12/14/2018, 2:06 PM
    @nikolasburk prisma-client has some error with updatemany/deletemany method which is not exists in "graphql-cli" generated file.
  • x

    xiaoqf10

    12/14/2018, 2:06 PM
  • x

    xiaoqf10

    12/14/2018, 2:40 PM
    fine.... It's because the prisma endpoint's docker image version is not the same with the runtime prisma version.
  • e

    ed

    12/14/2018, 6:52 PM
    Hi guys, I just started using prisma, I set up a postgres db, but I cant find the tables created by prisma, I am using pgadmin 4
  • t

    TangoJuliett

    12/14/2018, 7:34 PM
    What options exist currently in Prisma for bulk upserting data, if none, is there any plan to add support?
    👏 1
    🤷‍♂️ 1
  • f

    faure

    12/14/2018, 9:18 PM
    Not sure where to ask this but is it still the case that prisma does not support interfaces nor union types?
    t
    • 2
    • 4
  • s

    Sean Urgel

    12/15/2018, 4:56 AM
    Hello everyone, is there a way we can code split the
    schema.graphql
    file. Mine is getting too big
    g
    • 2
    • 1
  • h

    Heade

    12/15/2018, 8:08 AM
    hello guys
  • h

    Heade

    12/15/2018, 8:08 AM
    can anyone help me implement this payment method its like the only payment available in my country
  • h

    Heade

    12/15/2018, 8:08 AM
    but its in php
  • h

    Heade

    12/15/2018, 8:09 AM
    this is the link https://secure.fast-pay.cash/docs/start#init-createsession
    h
    • 2
    • 1
  • p

    pllumh

    12/15/2018, 3:04 PM
    What is going on with the ID returned in subscription for DELETED mutation ? First it was returning as
    CuidGCValue(ID)
    .. then it started returning normaly as it should
    ID
    now its coming as
    StringIdGCValue(ID)
    ?
1...176177178...637Latest