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

    Kevin S

    11/19/2018, 10:50 PM
    Thanks for the update!
  • r

    roberto.guerra

    11/19/2018, 10:57 PM
    Is there a way to add comments to the model that will also show up in the playground when I look at the schema?
    s
    • 2
    • 1
  • e

    ed

    11/19/2018, 11:04 PM
    thanks it seems working now
  • h

    hinsxd

    11/20/2018, 2:52 AM
    hi guys
  • h

    hinsxd

    11/20/2018, 2:53 AM
    Is it common to run regular scripts on database such that the “status” of some object model/field are updated regularly?
    s
    • 2
    • 2
  • h

    hinsxd

    11/20/2018, 2:56 AM
    For example, a post will be marked as “archived” two weeks after certain action. How should I set the “archived” flag after two weeks?
  • a

    Andres Montoya

    11/20/2018, 3:37 AM
    Hi, someone know how can I resolve this https://stackoverflow.com/questions/53385794/how-to-use-docker-compose-for-testing-development-and-production ? Thanks!
  • p

    prilutskiy

    11/20/2018, 7:21 AM
    Hi everyone! Is there a way to declare a one-to-one relations in
    datamodel.prisma
    ? Use case:
    Copy code
    type User {
      id: ID! @unique
      security: UserSecurity!
    }
    
    type UserSecurity {
      password: String!
      refreshTokens: [String!]!
      roles: [String!]!
    }
    s
    • 2
    • 2
  • p

    prilutskiy

    11/20/2018, 7:22 AM
    I want
    UserSecurity
    table to be created with 1-1 relation to
    User
  • g

    Gleb Feklistov

    11/20/2018, 8:05 AM
    Ребята, а когда призма начнет нормально работать с mysql, готовой базой, уже год жду, руки чешутся, а все никак?
  • g

    Gleb Feklistov

    11/20/2018, 8:06 AM
    То что вы пишите легко решалось через sequelize + grapql, собственно ваш велосипед даже не цепляется к половине тех баз которые можно покрыть из связки обычной API + grapql generator
  • g

    Gleb Feklistov

    11/20/2018, 8:08 AM
    Особенно радует эта страница, время идет, дизайн хелпа меняется, но пустота остается с нами навсегда: https://www.prisma.io/docs/tutorials/setup-prisma/connect-db-with-data/mysql-vuthaine2f
  • i

    Industrial

    11/20/2018, 8:47 AM
    Hi.
  • i

    Industrial

    11/20/2018, 8:47 AM
    `prisma.yml`:
    Copy code
    generate:
      - generator: javascript-client
        output: ./generated/prisma-js
      - generator: graphql-schema
        output: ./generated/prisma-gql
    n
    • 2
    • 1
  • i

    Industrial

    11/20/2018, 8:47 AM
    I can't find my files. THey are not on disk in the Host machine (using Docker Compose here)
  • i

    Industrial

    11/20/2018, 8:48 AM
    I can not log into the docker container:
    docker-compose run prisma bash
    and then it just starts the prisma process in the container and doesn't give me a shell.
  • i

    Industrial

    11/20/2018, 8:48 AM
    I don't understand how to get to the generated files.
  • v

    Vitch

    11/20/2018, 10:37 AM
    Hi everyone, Apparently to import some mongodb data into a new prisma mongodb i need to convert my data to ndf file. Is there any script to convert mongodb data to ndf that could allow my team and me from re-writing one ? Thanks for your help !
  • h

    halborg

    11/20/2018, 12:11 PM
    Anyone here who’s had success hosting a Prisma server on Heroku? I’m having this issue, and I need an adult 😄 https://github.com/prisma/prisma/issues/3502
    r
    • 2
    • 29
  • p

    prilutskiy

    11/20/2018, 12:41 PM
    how do you guys connect to the underlying postgres db that's in docker?
  • p

    prilutskiy

    11/20/2018, 12:42 PM
    I'm particularly interested how's that could be done via DataGrip, but any other hints are really appreciated
    a
    • 2
    • 2
  • c

    Craig

    11/20/2018, 12:43 PM
    I’m not a Docker wiz but I think you need to expose a port and connect via the docker public IP and said port
  • c

    Craig

    11/20/2018, 12:43 PM
    Here’s a SO answer which might help: https://stackoverflow.com/questions/47825130/datagrip-connection-failed-with-postgres-docker
  • p

    prolink007

    11/20/2018, 1:59 PM
    How do i upgrade the prisma server? Here is the forum thread for context. All my related prisma versions seem to be the latest version, but this person told me to upgrade my prisma server. I am unable to find any documentation on how to upgrade this. Everything i already have related to prisma seems to be at latest. https://github.com/prisma/prisma/issues/3505
    ⁉️ 1
    👎🏻 1
    e
    • 2
    • 17
  • k

    k0ff33

    11/20/2018, 2:46 PM
    Hi, I just started a project with advanced typescript-graphql-server boilerplate and wanted to use
    graphqlgen
    as well but don’t know how to configure it properly. Is there a guide on how to pair it both together?
    m
    • 2
    • 122
  • r

    roberto.guerra

    11/20/2018, 2:46 PM
    Has anyone run into issues when deploying a schema for the first time and it errors out when it is checking if a table exists?
    Copy code
    postgres_1_a6ab32ab94c9 | 2018-11-20 14:39:12.010 UTC [31] ERROR:  relation "my-project$dev.MyTable" does not exist at character 33
    postgres_1_a6ab32ab94c9 | 2018-11-20 14:39:12.010 UTC [31] STATEMENT:  select exists (select "id" from "my-project$dev"."MyTable")
    prisma_1_fb551e0dcf29 | org.postgresql.util.PSQLException: ERROR: relation "my-project$dev.MyTable" does not exist
  • d

    danlucraft

    11/20/2018, 3:43 PM
    OK, so I’ve been trying to understand this one for a couple of hours now. Here’s my prisma db call (in a Query resolver in a Yoga server):
    Copy code
    const posts = await ctx.prisma.posts(null, " { id } ")
    And here’s the corresponding log from prisma client lib:
    Copy code
    Query:
    {
      posts {
        id
        title
        url
      }
    }
    Why…. does the logged query have
    title
    and
    url
    in when I’m specifying only
    "{ id }"
    in my query call?
    🏁 1
    n
    • 2
    • 7
  • a

    andykay

    11/20/2018, 4:10 PM
    Is it possible to add columns to a relation table?
    • 1
    • 1
  • g

    Guus

    11/20/2018, 4:34 PM
    I recently started a new prisma server environment using a docker-compose.yml file and the prisma server container seems to be eating the host's CPU & disk I/O, the whole server started lagging. At first I though it was just during start-up (first start) but it didn't really improve after running for 2 days. The server isn't being used yet, there is no traffic on the prisma server and still I'm experiencing this much load, no idea why. Any thoughts?
  • g

    Guus

    11/20/2018, 4:34 PM
    when I run ps on the host I can see it's mainly java processes which are eating the CPU
    • 1
    • 1
1...161162163...637Latest