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

    cfree

    04/18/2019, 12:28 AM
    Anyone else have ghost records in their Prisma UI? My queries result in errors and it shows no content nor a way to edit or remove the record.
    • 1
    • 2
  • i

    iago

    04/18/2019, 3:13 AM
    i'm wondering if i can, with little code, have nexus-prisma forward all the CRUD of an entity as is except a predefined argument. one of my fields is the request domain, can't have it coming from the client. any pointers appreciated.
    s
    • 2
    • 9
  • x

    xiaoqf10

    04/18/2019, 3:51 AM
    Hi all. How to change a field from 'Int' to 'Float' without data loss?
    s
    • 2
    • 2
  • j

    Jorge

    04/18/2019, 6:19 AM
    about the new prisma version.. if it has a breaking change it should bump the major version to v2.0.0
  • t

    taikn

    04/18/2019, 8:33 AM
    Are demo servers using MySQL as a db?
    z
    s
    • 3
    • 2
  • s

    Storm

    04/18/2019, 12:02 PM
    Looking for a little help with an upgrade issue. During
    prisma deploy
    , I get this error on a few types:
    Copy code
    You are removing the field `updatedAt` while migrating to the new datamodel. Add the field `updatedAt: DateTime! @updatedAt` explicitly to your model to keep this functionality.
    You are removing the field `createdAt` while migrating to the new datamodel. Add the field `createdAt: DateTime! @createdAt` explicitly to your model to keep this functionality.
    What if I don’t want those fields on a particular type?
  • r

    rem

    04/18/2019, 2:12 PM
    Trying the 1.31 upgrade guide, and the
    introspect
    command doesn't match what happens in the guide (and video) - I get this instead:
    Copy code
    ❯ prisma introspect
    ? What kind of database do you want to introspect? (Use arrow keys)
    ❯ MySQL             MySQL compliant databases like MySQL or MariaDB
    j
    s
    • 3
    • 16
  • m

    Mahmoud El Kotoury

    04/18/2019, 2:17 PM
    guys is there polymorphism in prisma
    a
    • 2
    • 1
  • m

    Mahmoud El Kotoury

    04/18/2019, 2:17 PM
    ?
  • m

    Mahmoud El Kotoury

    04/18/2019, 2:17 PM
    inheritance in prisma ? interfaces?
  • c

    ciszekmarcell

    04/18/2019, 4:11 PM
    Hi_everyone___can_somone_help_with_this_error__.txt
    ✅ 1
    p
    • 2
    • 7
  • j

    Jared

    04/18/2019, 4:53 PM
    Hey guys, I just upgraded to 1.31 and theres one last error that i can't get past in the migration:
    Copy code
    Booking
        ✖ Valid values for the strategy argument of `@scalarList` are: RELATION.
    I beleive the field in question is:
    Copy code
    guestsWithSpecialPricing: [String!]!
    I can't find anything in the docs about scalar lists. Any ideas?
    • 1
    • 1
  • j

    jordy

    04/18/2019, 5:08 PM
    Anyone had this isssue?
  • j

    John Aagaard

    04/18/2019, 5:58 PM
    has anyone had issues trying to nested queries. im getting back weird error messages but the data is getting to my database just something off on my graphql part.
    j
    • 2
    • 9
  • j

    John Aagaard

    04/18/2019, 5:58 PM
  • j

    John Aagaard

    04/18/2019, 5:58 PM
  • j

    John Aagaard

    04/18/2019, 5:59 PM
    if anyone has any advice would be greatly appreciated!!
  • l

    lawjolla

    04/18/2019, 6:09 PM
    Does anyone have experience selecting a subset of types from generated types? I have my specific question on SO. https://stackoverflow.com/questions/55739421/selecting-nested-typescript-type-from-array
  • c

    Charlene

    04/18/2019, 6:37 PM
    Hi 👋 , are there any graph.cool experts on here that would like to consult on our migration project? Please DM me if you have detailed experience in migrating away from graph.cool and have some time immediately for consulting. Thanks!
  • e

    Enitan

    04/18/2019, 8:51 PM
    Hi all, can anyone please point me to a resource to help setup prisma with postgres on ubutu?
  • e

    Enitan

    04/18/2019, 8:52 PM
    postgres is not a docker image but a "full install"
    j
    • 2
    • 24
  • c

    cedric

    04/18/2019, 8:56 PM
    noticing some curious behavior on prisma cloud. when creating a new service from scratch, it appears to default to prisma 1.23 (with no clear path to choose a version or upgrade). is this the latest supported version of prisma on prisma cloud?
    j
    j
    +2
    • 5
    • 13
  • j

    Jameson Brown

    04/18/2019, 11:52 PM
    Hello everyone! My prisma server version is 1.32.0-beta how do I switch it back to 1.31? I have removed it and reinstalled with
    yarn global add prisma@1.31
    but its still at 1.32.0-beta
    j
    d
    • 3
    • 27
  • d

    dnbkr

    04/19/2019, 1:42 AM
    I'm having some issues deploying my datamodel, seems to have something to do with prisma being updated? I've tried to follow the guide for how to upgrade the datamodel but now it's just more f'd than before.
    j
    • 2
    • 1
  • w

    wuichen

    04/19/2019, 9:47 AM
    hi everyone I need some help translating graphql api to rest api i have a database schema like this type User { id: ID! @id email: String! @unique workspaces: [Workspace!]! } when i do graphql playground on graphql server with this api call, i get successful result
    Copy code
    query {
      user (where: {
        email: "<mailto:chen1@gmail.com|chen1@gmail.com>"
      }) {
        id
        workspaces {
          id
        }
      }
    }
    Copy code
    {
      "data": {
        "user": {
          "id": "cjunu2avf5lra0b30tqyc62mb",
          "workspaces": [
            {
              "id": "cjunu33pa8h3a0b12zsmax1fw"
            }
          ]
        }
      }
    }
    however when i try to get the same thing in rest api in my server code
    Copy code
    const user = await this.prisma.user({
            email: this.user.email
          });
          console.log(user);
    i can only get partial data like this. i can’t figure out how to get workspaces array to be included
    Copy code
    { id: 'cjunu2avf5lra0b30tqyc62mb',
      email: '<mailto:ichenwu01@gmail.com|ichenwu01@gmail.com>' }
    n
    • 2
    • 1
  • s

    Storm

    04/19/2019, 12:22 PM
    Is anyone else having this issue? https://prisma.slack.com/archives/CA491RJH0/p1555588970219400
    j
    • 2
    • 4
  • s

    Slackbot

    04/19/2019, 12:28 PM
    This message was deleted.
    j
    • 2
    • 1
  • m

    mux

    04/19/2019, 2:55 PM
    do scalar lists only accept relation strategies now?
  • m

    mux

    04/19/2019, 2:55 PM
    Copy code
    locations: [String!]! @scalarList(strategy: EMBEDDED)
  • m

    mux

    04/19/2019, 2:55 PM
    this returns an error of:
    Valid values for the strategy argument of '@scalarList' are: RELATION.Valid values for the strategy argument of '@scalarList' are: RELATION.
1...256257258...637Latest