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

    Noah

    05/08/2019, 5:16 PM
    How do I create a scalar type Numeral(30,2) on Postgres via Prisma datamodel? Default Prisma Float type is Numeral(65,30). I changed a field type manually on Postgress to (30,2). Prisma couldn’t connect to the db after that.
    b
    • 2
    • 4
  • r

    rolly

    05/08/2019, 10:37 PM
    Hello, can i post here something that i think is a bug ?
  • r

    rolly

    05/08/2019, 10:38 PM
    this is the link to the error https://stackoverflow.com/questions/56049813/prisma-deploy-embedded-in-two-fields-error-like-bug
    s
    k
    n
    • 4
    • 3
  • r

    rolly

    05/08/2019, 10:39 PM
    -.txt
  • r

    rolly

    05/08/2019, 10:39 PM
    Two field with the same embed throws an error
  • t

    Teodoro Meyerhoff

    05/08/2019, 11:52 PM
    Hi, neither the pre configured droplet nor the fargate server were able to connect. Still just refusing to connect on port 80. Has anyone had success with either of these tutorial?
  • j

    Jeff

    05/09/2019, 12:36 AM
    Could anybody explain to me how Docker works with Prisma? I'm having difficulty understanding the relationship between the two.
    b
    • 2
    • 3
  • b

    borisgefter

    05/09/2019, 4:59 AM
    Anyone else having timeout issues committing to prisma?
  • m

    Morten Bo Rønsholdt

    05/09/2019, 6:20 AM
    something I find super inconsistent about Prisma is enum naming. if I try to make an enum in datamodel.prisma with a lowercase character it says:
    The first character of each value must be an uppercase letter.
    . although when you auto-generate a schema.graphql all the enums are lowercase like this:
    Copy code
    enum DeviceOrderByInput {
      apnsToken_ASC
      apnsToken_DESC
      createdAt_ASC
      createdAt_DESC
      fcmToken_ASC
      fcmToken_DESC
      id_ASC
      id_DESC
    }
    why the inconsistency and any way to make it consistent?
    n
    • 2
    • 1
  • a

    ahebwa49

    05/09/2019, 6:21 AM
    Hello guys, how do i go about this PRISMA_MANAGEMENT_API_SECRET error while trying to re-deploy my prisma server, haunted me for the last many hours now
    m
    • 2
    • 2
  • a

    ahebwa49

    05/09/2019, 6:21 AM
    @Harshit
  • b

    bkstorm

    05/09/2019, 7:01 AM
    Hi guy, how to show sql queries that are executed by prisma. I follow this issue: https://github.com/prisma/prisma/issues/2833 but it doesn't work.
  • c

    catalinmiron

    05/09/2019, 8:15 AM
    🔥This is great, Awesome Prisma (https://github.com/catalinmiron/awesome-prisma) was merged in the main Awesome repository ❤️. If you'd like to share some great resources don't hesitate to open a PR, you're more than welcome! 🙌
    🦜 3
    prisma cool 3
    🎉 5
    👍 4
  • r

    rooneyK

    05/09/2019, 11:43 AM
    any way to for prisma deploy to skip sending data to
    prisma.sh
    ? currently stuck with this for an offline-installation:
    Copy code
    2019-05-09T11:41:50.549Z environment { needsAuth: false }
    2019-05-09T11:41:50.551Z client is local cluster: false
    2019-05-09T11:41:50.555Z client Sending query to cloud api
    2019-05-09T11:41:50.556Z client <https://api2.cloud.prisma.sh>
    2019-05-09T11:41:50.556Z client {
          me {
            id
            name
            login {
              email
            }
          }
        }
    2019-05-0
    n
    • 2
    • 1
  • j

    Jesper O. Christensen

    05/09/2019, 1:18 PM
    Java heap space issues.. can i give prism more heap space?
    d
    • 2
    • 1
  • c

    Craig

    05/09/2019, 1:44 PM
    Is it possible to limit the number of results in a nested, relationed field? E.g. something like:
    Copy code
    query foo {
    foo(first: 1) {
        id
        bar(first: 10) {
          id
        }
      }
    }
    Where the
    foo
    schema has a property
    bar
    whose value is
    [bar]
  • c

    Craig

    05/09/2019, 1:44 PM
    Or is that trying to do too much in a single query
  • c

    Craig

    05/09/2019, 2:04 PM
    Figured it out: Had to add parameters to the Type definitions for the nested connections. Didn’t realize that was possible outside of a
    Query
  • m

    mezie

    05/09/2019, 4:18 PM
    Hi guys! I know I can use the Prisma demo database, but how do I go about migration to my own self-hosted database or Heroku through Prisma cloud?
  • j

    jdoyle112

    05/09/2019, 8:19 PM
    Is it possible to catch mutation errors on the server level in a try catch? I have a yoga server with a mutation in a try/catch block but it seems like the code in the catch doesn’t run when error occurs
  • j

    jdoyle112

    05/09/2019, 8:26 PM
    What I’m trying to do is insert an order record with a unique order number in the database, but “catch” if graphql throws a unique constraint violation error so I can generate a new order number and try again. I could always query the db when generating the # but I figured it was an unnecessary operation
  • c

    Craig

    05/09/2019, 8:29 PM
    @jdoyle112 I think I ran into the same issue and for some reason I was only able to get/catch the error by doing something like
    await prisma.createFoo(args).catch(err => handleError(err))
  • c

    Craig

    05/09/2019, 8:30 PM
    It seemed like only promise-chaining the catch would work whereas with a try/catch block it never got to the catch
  • j

    jdoyle112

    05/09/2019, 8:31 PM
    Interesting.. okay thanks @Craig
  • c

    Coralynn Colombe

    05/09/2019, 8:31 PM
    Is this place appropriate to ask about nexus-prisma issues?
  • m

    Max

    05/10/2019, 3:51 AM
    I've got Prisma connected to my MongoDB. But when I make a
    createUser
    mutation, a new database is being created called
    default_default
    and the user is added there instead of the database I specified when connecting.
    docker-compose.yml
    Copy code
    version: '3'
    services:
      prisma:
        image: prismagraphql/prisma:1.23
        restart: always
        ports:
        - "4466:4466"
        environment:
          PRISMA_CONFIG: |
            port: 4466
            # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
            # managementApiSecret: my-secret
            databases:
              default:
                connector: mongo
                uri: '<mongodb://host.docker.internal:27017/name-of-db>'
    n
    • 2
    • 1
  • a

    Adrian

    05/10/2019, 4:05 AM
    Anyone can point me in the right direction of using passport-twitter as a way to authenticate with prisma?
    b
    • 2
    • 1
  • d

    Darryl

    05/10/2019, 4:45 AM
    Has any one successfully migrated their project over to using nexus-prisma? I’m having some trouble setting up my queries and mutations and would love some help. Thank you!
    b
    • 2
    • 4
  • m

    mezie

    05/10/2019, 9:25 AM
    Anyone got an idea on this?
    t
    • 2
    • 4
  • d

    Darryl

    05/10/2019, 9:36 AM
    Why, when using nexus-prisma, am I seeing this kind of error when firing a mutation?
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Expected Iterable, but did not find one for field Mutation.signup.",
          "locations": [
            {
              "line": 2,
              "column": 3
            }
          ],
          "path": [
            "signup"
          ]
        }
      ]
    }
    I can fix it by wrapping my return (a token and user object) in an array but I’m not sure why it’s expecting an array.
    b
    • 2
    • 5
1...267268269...637Latest