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

    joan

    02/22/2019, 10:18 AM
    hmm, this error happens when an
    event
    has at least a
    participant
    added. Can I just remove the participant also when the
    event
    is removed?
    m
    • 2
    • 2
  • m

    Martí Crespí

    02/22/2019, 10:19 AM
    I have updated nexus-prisma from 0.3.1 to 0.3.2, and there is a breaking change in makePrismaSchema function. I have been looking for it in e.g https://nexus.js.org/docs/database-access-with-prisma and the documentation is outdated. Can someone tell me how can I refactor this?
    -.php
    w
    • 2
    • 3
  • l

    Lars-Jørgen Kristiansen

    02/22/2019, 10:25 AM
    Is it "safe" to do manual optimizations in the postgres db when using Prisma? Adding indexes to fields etc..? What about combining prisma with direct postgres access in my apollo prisma graphql server..?
    h
    • 2
    • 2
  • r

    Ricky

    02/22/2019, 10:28 AM
    morning guys happy firday, got a Prisma deployment question. I am running Prisma 1.27 both locally and server. When I run
    prisma deploy
    i see messages such as the following
    Copy code
    Survey (Type)
      + Created type `Survey`
      + Created field `id` of type `ID!`
      + Created field `createdAt` of type `DateTime!`
      + Created field `updatedAt` of type `DateTime!`
      + Created field `date` of type `DateTime`
      + Created field `name` of type `String!`
      + Created field `Questions` of type `[Question!]!`
    
    Question (Type)
      + Created type `Question`
      + Created field `id` of type `ID!`
      + Created field `updatedAt` of type `DateTime!`
      + Created field `createdAt` of type `DateTime!`
      + Created field `displayText` of type `String!`
      + Created field `surveys` of type `[Survey!]!`
     
    QuestionOnSurvey (Relation)
      + Link Table `_QuestionOnSurvey` between `Question` and `Survey` has been created
    There is also a counter saying
    Applying changes (x/y)
    . However I see that the counts decreases to 0 instead of increases. checking in the db itself shows only this table
    _RelayId
    is created. Any idea what could be wrong? Many thanks
    h
    • 2
    • 5
  • u

    Uby

    02/22/2019, 11:47 AM
    Hey guy! Quick question! Could we use
    nexus-prisma
    with an other graphql bindings rather than prisma-client?
  • u

    Uby

    02/22/2019, 11:49 AM
    We are in a scenario where we created a few different prisma services, merged them in 1 unified graphql server (and extended the types for cross boundaries purposes). Now we are creating different graphql servers to use the unified graphql server. It would be amazing to create these in a
    nexus-prisma
    way!
    j
    • 2
    • 11
  • a

    Andrei Bacescu

    02/22/2019, 12:09 PM
    Hello guys! I understand what an interface and node represent in Prisma, but I don't understand the utility of the node field inside of a query type. See below:
    Copy code
    type Query {
        node(id: ID!): Node
        ....
    }
    I saw this code in
    prisma.graphql
    file generated by
    prisma-client
    library. Thanks in advance.
    h
    • 2
    • 5
  • m

    Martin Hunt

    02/22/2019, 1:24 PM
    Hey all! I'm playing around with sorting using prisma client. I have a field which can either be null or a date. When sorting on this field, is there some way I can get it to treat Null as the largest item rather than the smallest? i.e.
    Copy code
    null
    28/02/2019
    null
    22/02/2019
    24/02/2019
    null
    Would be ordered ASC:
    Copy code
    22/02/2019
    24/02/2019
    28/02/2019
    null
    null
    null
    I'm a bit stumped with this. Any idea of where to start would be greatly appreciated!
    h
    • 2
    • 3
  • s

    swangy

    02/22/2019, 3:37 PM
    hi guys been trying to wrap my head around integrating prisma with our graphql setup
    h
    • 2
    • 32
  • j

    joan

    02/22/2019, 3:57 PM
    @Harshit I've deployed my prisma app using netlify but it seems it´s still trying to reach
    localhost
    h
    • 2
    • 12
  • j

    joan

    02/22/2019, 3:57 PM
    how do I change the prod settings to make the start the server in prod?
  • j

    joan

    02/22/2019, 3:58 PM
    I'm following the basic boilerplate: https://github.com/graphql-boilerplates/react-fullstack-graphql/tree/master/basic
  • r

    rawriclark

    02/22/2019, 3:59 PM
    anyone know if prisma supporst blob ?
    h
    • 2
    • 2
  • r

    rawriclark

    02/22/2019, 3:59 PM
    i can't seem to find any documentation
  • r

    rawriclark

    02/22/2019, 4:03 PM
    oh nevermind its Binary
  • r

    rawriclark

    02/22/2019, 4:03 PM
    nope
  • r

    rawriclark

    02/22/2019, 4:04 PM
    anyone know?
  • d

    dan

    02/22/2019, 4:08 PM
    Looking for advice on the prisma deploy command when deploying using docker, where is the best place to run this?
  • d

    dan

    02/22/2019, 4:09 PM
    Right now I am calling prisma deploy in the
    Dockerfile
    but seems kinda odd to have to install prisma on the app server as well in order to run the deploy command and make sure the generated client is up to date.
    h
    • 2
    • 4
  • j

    Jerry Jäppinen

    02/22/2019, 4:37 PM
    Trying to sign a new token for Prisma. I need to use an external service to edit the expiration time (correct?) but I’m having an issue with https://www.jsonwebtoken.io/
    h
    • 2
    • 10
  • j

    Jerry Jäppinen

    02/22/2019, 4:37 PM
    Any other suggestions?
  • j

    Jerry Jäppinen

    02/22/2019, 4:38 PM
    (jsonwebtoken.io displays a small error message in the signing key field, seems to be some issue on the web site since it doesn’t matter what I enter and it’s there by default)
  • s

    somoni

    02/22/2019, 6:52 PM
    Howdy !
  • s

    somoni

    02/22/2019, 6:53 PM
    The prisma documentation is super slick ! can i ask how is it getting generated ? i could not figure by looking at the code
    h
    • 2
    • 2
  • r

    rawriclark

    02/22/2019, 7:13 PM
    @Harshit do you know how I can use Blob or Binary in prisma?
  • j

    Jerry Jäppinen

    02/22/2019, 9:05 PM
    Having another go at the JWT issue. I made a small script for encoding and decoding tokens using
    jwt-simple
    . I realized that when I try to decode a token generated by
    prisma generate
    , jwt throws
    Error: Signature verification failed
    when I use the key from my
    prisma.yml
    . I can bypass the verification, in which case I see the payload that I expected after decoding. This makes me think that I don’t understand what
    prisma token
    really does
  • j

    Jerry Jäppinen

    02/22/2019, 9:06 PM
    So is the prisma token command doing something else? Anything funky going on behind the scenes? I don’t feel super comfortable with all this stuff, but I’ve tried this with several tools and get consistent results… I’m wondering if I’m missing something super super obvious. I know my setup works because when I connect to the API with the prisma-generated token, I get through, but I don’t want it to expire weekly
  • j

    Jerry Jäppinen

    02/22/2019, 9:14 PM
    Actually, on jwt.io I also get “invalid signature” when I enter a token from
    prisma token
  • r

    ryan

    02/22/2019, 9:20 PM
    do you have the JWT secret to give to jwt.io? it needs that to verify
  • j

    Jerry Jäppinen

    02/22/2019, 9:21 PM
    Yeah, I have it there. And got the same result when decoding with
    jwt-simple
1...222223224...637Latest