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

    CCBCodeMonkey

    11/26/2018, 5:34 PM
    anyone have an issue with
    graphql-yoga
    and
    nodemon
    where when you make a change in development inside one of the resolver functions, it doesn't get picked up unless I kill
    nodemon
    completely? but what is weird is changes outside the functions, do get picked up immediately
    t
    c
    • 3
    • 11
  • s

    Sithnil

    11/26/2018, 11:52 PM
    hey, I am trying to get prisma to work, but after I install it through NPM and run the cmd prisma I get 'MODULE_NOT_FOUND': Cannot find module 'ps-node' and the picture has the more detailed error report. Is there anyone that knows how to fix this?
  • d

    Diego Alvarado

    11/26/2018, 11:57 PM
    hi, I am trying to set up prisma on ubuntu connected to an existing postgres db. when I try to run docker-compose up -d I get an error saying no pg_hba.conf entry for user "test" database "postgres". I understand that this would give an error because my pg_hba.conf is configured to only accept user "test" for database "test". however in my docker-compose.yml the database name is specified as "test" and not "postgres". any ideas why it is trying to connect to a database named "postgres" instead of "test" ?
  • i

    ian izaguirre

    11/27/2018, 12:21 AM
    If I am passing an ID of a type to a different type and storing it as a value on one of its fields through the front end- is there a way to create a relationship in the backend between these two types? Or is it not possible because I am passing the The id from the front end
    j
    • 2
    • 5
  • j

    joar

    11/27/2018, 2:42 AM
    Heads up at that Graphcool is a victim of this attack: https://github.com/dominictarr/event-stream/issues/116
  • j

    joar

    11/27/2018, 2:45 AM
    That said it doesnt seem to be relevant except for a very specific combination of packages (targeting some BTC wallet), but might be good to be aware of. The package has been removed from npm so people's builds might start failing 🙂
  • w

    wontwon

    11/27/2018, 4:50 AM
    I’m having an issue understanding why I can’t directly import the generated graphql mutations, queries, and types into my graphql-yoga server
    👍 1
    h
    • 2
    • 9
  • w

    wontwon

    11/27/2018, 4:56 AM
    Anyone?
  • w

    wontwon

    11/27/2018, 4:57 AM
    What should go in here?
    -.java
  • t

    Tony

    11/27/2018, 5:01 AM
    Yeah what's the point of Prisma if yoga can't use the queries/mutations generated by Prisma? Or can it? Is there a benefit over using yoga with say, Sequelize?
  • j

    John Smeeth

    11/27/2018, 5:11 AM
    hi all
  • j

    John Smeeth

    11/27/2018, 5:12 AM
    i’m getting start with go. after run dep init and dep ensure. then i run go run index.go i got error
    Copy code
    # sandbox/hello-prisma/generated/prisma-client
    generated/prisma-client/prisma.go:22:15: undefined: Exists
    generated/prisma-client/prisma.go:48:14: undefined: Client
    generated/prisma-client/prisma.go:1420:9: undefined: Client
    generated/prisma-client/prisma.go:1421:11: undefined: Instruction
  • j

    John Smeeth

    11/27/2018, 5:12 AM
    Anyone please help me?
  • g

    Gorodov Maksim

    11/27/2018, 7:53 AM
    Any ideas how I can resolve cors issue?
    f
    • 2
    • 3
  • h

    Hassan

    11/27/2018, 9:59 AM
    is building a passthrough graphQL layer on top of an existing API (using resolvers, etc) something I should do with Prisma or fall back to GraphCool?
    t
    c
    • 3
    • 9
  • j

    Jidé

    11/27/2018, 11:12 AM
    Hello folks ! Are there known issues with server-side subscriptions ? I can’t make it work, nothing is triggered. In particular, is the subscription query calling prisma or the app api ?
  • y

    yolen

    11/27/2018, 11:22 AM
    Is there a way to rename a named relations? e.g. original:
    Copy code
    type User {
      id: ID! @unique
      name: String!
      posts: [Post!]! @relation(name: "UserOnPost")
    }
    
    type Post {
      id: ID! @unique
      title: String!
      user: User! @relation(name: "UserOnPost")
    }
    changed datamodel:
    Copy code
    type User {
      id: ID! @unique
      name: String!
      posts: [Post!]! @relation(name: "PenisOnPost")
    }
    
    type Post {
      id: ID! @unique
      title: String!
      user: User! @relation(name: "PenisOnPost")
    }
    I keep getting
    âś– You are creating a required relation, but there are already nodes that would violate that constraint.
    when
    prisma deploy
    f
    • 2
    • 14
  • k

    kitze

    11/27/2018, 11:31 AM
    Does anyone else have a problem with Prisma being slow today?
    d
    t
    • 3
    • 4
  • t

    THpubs

    11/27/2018, 12:29 PM
    Hi! Does any one know whether we can set an
    onDelete
    for
    pgRelation
    ?
  • j

    Jidé

    11/27/2018, 12:50 PM
    I don’t understand why my server side subscription does not work... Here is my subscription :
    Copy code
    subscription {
      chapter(where: { mutation_in: [UPDATED] }) {
        mutation
        updatedFields
        node {
          id
          title
        }
        previousValues {
          id
          title
        }
      }
    }
    And prisma.yml :
    Copy code
    subscriptions:
      chapter:
        query: ./chapter.graphql
        webhook: <https://XXXXXXX.execute-api.eu-west-1.amazonaws.com/dev/prismaSubscriptions>
    A test query :
    Copy code
    mutation {
      updateChapter(
        where: {
          id: "cjot5ky4d521f0a75pytaabzl"
        }
        data: {
          title: "Hello 2"
        }
      ) {
      	id
      }
    }
    The webhook is a node lambda, I see cloudwatch logs when visiting the url manually. Calling the query in playground returns the result, but no logs show up in the lambda cloudwatch logs. Any idea ? 🙂
  • t

    tylim

    11/27/2018, 1:49 PM
    hello guys, after i add management key, my node unable to connect to prisma, what am i missing?
    h
    • 2
    • 4
  • j

    Jidé

    11/27/2018, 2:39 PM
    Of course ! I needed a POST method, not a GET method...
  • n

    Namoz

    11/27/2018, 6:04 PM
    Hello guys ! Has anyone had a problem with deeply nested selector on queries ? Given the entities A, B and C, with A -> B and B -> C, I am trying to query :
    Copy code
    { 
      A {
         B {
             C ( where : { field_not: null } ) {
                 id
            }
        }
    }
    Is giving me an error :
    Copy code
    Unknown argument 'where' on field 'C'
  • m

    Martin Hunt

    11/27/2018, 6:11 PM
    Hey Friends, I have a couple of beginner-ish questions and I wonder if anyone here can point me in the right direction... 1) I'm looking to set up a cron job that runs a function that will check the database and send out various reminders to users based on certain criteria. I'm at a little bit of a loss as to where to start with this in a prisma / gql-yoga environment. 2) I'm noticing that my application is at times very slow and I'm wondering if this is simply because I'm using the free Prisma dev environment. Is the paid tier faster or is it likely that the issue is on my end? Thanks in advance for any help
    f
    • 2
    • 4
  • g

    Garvold

    11/27/2018, 7:00 PM
    hello, I have a question related to open source licensing. could someone tell me what type of license Prisma has?
    f
    k
    • 3
    • 4
  • n

    Naka

    11/27/2018, 7:44 PM
    Anyone having trouble on search in prisma console? I get the following error:
    Copy code
    "message": "Argument 'where' expected type 'ProjectWhereInput' but got {OR: [{id_contains: \"test\"}, ....
  • m

    Mukul

    11/27/2018, 7:50 PM
    How can I remove or add an item to a field with update operation?
  • v

    vjsingh

    11/27/2018, 8:19 PM
    I just migrated my codebase from prisma-binding to the new prisma-client. I’m noticing a significant slowdown in my app, 4-5 seconds to load the home page vs 1-2 seconds before. Rolling back the commit will undo the problem. Has anyone else encountered this?
    • 1
    • 3
  • n

    Naka

    11/27/2018, 8:26 PM
    It seems that search on prisma console search breaks when you have a field of type
    [String!]!
    in your datamodel.
    • 1
    • 1
  • i

    impowski

    11/27/2018, 9:08 PM
    Hello guys, I was wondering how do I use schema delegation as before in Prisma 1.21?
1...166167168...637Latest