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

    jasonmj

    04/06/2019, 5:50 PM
    Hi đź‘‹ I'm having trouble with scalar list mutations...
  • j

    jasonmj

    04/06/2019, 5:52 PM
    My schema uses [String!] and my mutation resolver includes stringArg({ list: true })
  • j

    jasonmj

    04/06/2019, 5:53 PM
    My query uses the format { set: ["a", "b", "c"] }
  • j

    jasonmj

    04/06/2019, 5:54 PM
    But I'm getting an error that says:
    Expected type [String!], found {set: ["a", "b", "c"]}
    • 1
    • 1
  • r

    Robert Hall

    04/06/2019, 7:02 PM
    Hey, been digging into Prisma and just now realized that an “endpoint” is different than the client.
    l
    • 2
    • 3
  • r

    Robert Hall

    04/06/2019, 7:36 PM
    What’s people’s experience w/ using Digital Ocean and Docker deploy?
    s
    • 2
    • 1
  • d

    dennis

    04/07/2019, 3:10 AM
    does anyone have encounter this issue? prisma deploy does work when i remove the managementSecretApi on the docker-compose, if managementSecretApi added on the docker-compose the error below will be shown.
    -.txt
    h
    • 2
    • 1
  • h

    halborg

    04/07/2019, 1:19 PM
    Starting new greenfield project, and I'm at a loss as to whether to go with
    graphqlgen
    or
    nexus
    - Does anyone have any experiences they can share, or know something about the projects' development/roadmap/commitment or something that might point in the direction of one or the other? I'm working on another project where we are using plain TS graphql-tools declarations of types. Here, I like the power of TS over SDL and the intellisense, but it gets quite verbose. I like the idea of
    graphqlgen
    to minimize boilerplate, but I'm having a hard time discerning whether it's a good approach when the project grows
    m
    b
    • 3
    • 16
  • j

    James

    04/07/2019, 3:27 PM
    With prisma can I make my requests via websocket. I already have all the infrastructure for websockets for my subscriptions, but can I may my other queries over websocket instead?
    h
    • 2
    • 1
  • g

    gjergj kadriu

    04/07/2019, 6:57 PM
    Is it possible to return promises with graphql/prisma?
  • b

    Bjoern

    04/07/2019, 7:57 PM
    does someone have an example of a subscription implemented with nexus?
    l
    • 2
    • 2
  • b

    bkstorm

    04/08/2019, 2:29 AM
    Copy code
    echo $PRISMA_ENDPOINT
    <http://localhost:4466/app/dev>
    But when I run
    prisma deploy
    , it show a warning:
    Copy code
    â–¸    [WARNING] in
     â–¸    /path/.../prisma/prisma.yml:
     â–¸    A valid environment variable to satisfy the declaration
     â–¸    'env:PRISMA_ENDPOINT' could not be found.
    Here is prisma.yml:
    Copy code
    endpoint: ${env:PRISMA_ENDPOINT}
    How can I fix it?
    r
    m
    • 3
    • 5
  • r

    rdc

    04/08/2019, 4:47 AM
    I've installed prisma at AWS ECS at EC2 and the playground endpoint is working but getting the following error:
    "message": "request to <http://52.64.252.110/> failed, reason: connect EMFILE 52.64.252.110:80 - Local (undefined:undefined)",
    any Idea why?
  • a

    ahebwa49

    04/08/2019, 6:57 AM
    Hello prisma fam, I have an issue i was battling the entire Sunday and I'd be glad if I'm assisted here. In my
    datamodel.prisma
    as shown below, i have a permissions and cart field on the User type but when i run prisma deploy and check my local postgres db, I don't find those fields and it's really breaking my application.
  • a

    ahebwa49

    04/08/2019, 6:57 AM
    Copy code
    enum Permission {
      ADMIN
      USER
      ITEMCREATE
      ITEMDELETE
      ITEMUPDATE
      PERMISSIONUPDATE
    }
    
    type User {
      id: ID! @unique
      name: String!
      email: String! @unique
      password: String!
      resetToken: String
      resetTokenExpiry: Float
      permissions: [Permission]
      cart: [CartItem!]!
    }
    
    type Item {
      id: ID! @unique
      title: String!
      description: String!
      image: String
      largeImage: String
      price: Int!
      user: User!
    }
    
    type CartItem {
      id: ID! @unique
      quantity: Int! @default(value: 1)
      item: Item! #relationship to item
      user: User! # relationship to user
    }
  • a

    ahebwa49

    04/08/2019, 6:59 AM
    I won't see the two fields, i.e permissions and cart in my User table and yet they are in the datamodel.prisma file. How come?
    s
    m
    • 3
    • 41
  • s

    Ste O'Neill

    04/08/2019, 9:04 AM
    Hi all, am I right in thinking I have this wrong? I've been digging for a while, and it seems I cant do this! I've essentially got everything set up in a docker-compose file, so it's like this
    Copy code
    postgres
    prisma
    frontend
    backend
    I seem to be having loads of issues so should i do it another way?
    m
    • 2
    • 3
  • s

    siyfion

    04/08/2019, 10:13 AM
    I’m getting some issues when trying to deploy changes after upgrade my local prisma client to 1.30 (from 1.28). I keep getting
    ERROR: GraphQL Error (Code: 400)
    returned and an error html response, but no real useful error code.
    m
    h
    • 3
    • 47
  • j

    Jeff Aron

    04/08/2019, 10:16 AM
    Hello everyone, I have some questions for prisma. I want one datamodel. It has many types of models. So I want to use graphql stitching. At that moment i want to add custom directives in the datamodel. But while generating the prisma schema, they are all ignored. Is there any solution to add custom directives? nexus can solve this problem?
  • n

    Nick

    04/08/2019, 10:27 AM
    @Prisma Community Anyone that knows how to write tests with graphql-nexus and prisma?
    • 1
    • 1
  • p

    Philipp

    04/08/2019, 12:49 PM
    Hi Community.. I'm running prisma locally using docker image
    prismagraphql/prisma:1.29
    and a MongoDB. I use the basic example for embedded from the website:
    Copy code
    type City {
        id: ID! @id
        name: String!
        coordinates: Coordinates
    }
    
    type Coordinates @embedded {
        latitude: Float!
        longitude: Float!
    }
    Opening http://localhost:4466/_admin gives me directly the following error:
    Copy code
    [
      {
        "message": "Cannot query field 'id' on type 'Coordinates'. (line 8, column 7):\n      __id: id\n      ^",
        "locations": [
          {
            "line": 8,
            "column": 7
          }
        ]
      }
    ]
    I was expecting embedded documents don't need an ID for MongoDB? Am I doing something wrong? Thanks!
    m
    h
    • 3
    • 6
  • s

    siyfion

    04/08/2019, 2:25 PM
    Quick question; does
    onDelete: CASCADE
    fire when using the
    deleteManyXXX
    syntax?
    h
    • 2
    • 3
  • j

    Jeany Meza

    04/08/2019, 2:54 PM
    is graphql-resolver-codegen discontinued? I was working on a new project since yesterday and came up with a tricky bug.
  • j

    Jeany Meza

    04/08/2019, 2:56 PM
    I'm reading through graphqlgen now and haven't found a guide to make work with Prisma yet.
  • j

    Jeany Meza

    04/08/2019, 3:18 PM
    wait there's also Nexus-Prisma xD will have tons of fun learning new tools 🙂
  • c

    ChrisBull

    04/08/2019, 4:43 PM
    Can someone quickly tell me what the Nexus arg function is for passing an array???? Ultimately trying to create a resolver for passing chatMemberIds into a createChat resolver.
    Copy code
    enum MessageType {
      TEXT
      PICTURE
      LOCATION
    }
    
    type ChatMessage {
      id: ID! @unique
      chat: Chat!
      sender: User!
      content: String
      createdAt: DateTime!
      type: MessageType
    }
    
    type Chat {
      id: ID! @unique
      name: String
      picture: String
      members: [User!]! @relation(name: "ChatMembers")
      owner: User! @relation(name: "ChatAdmin")
      messsages: [ChatMessage!]!
    }
    d
    • 2
    • 10
  • y

    yucun

    04/08/2019, 10:02 PM
    Just found that current sdl feature doesn’t support union type and interfaces, i wonder if there is any work arounds exist while not introduce much complexity❓
    n
    • 2
    • 3
  • c

    captaindaylight

    04/08/2019, 10:58 PM
    I’m using Prisma for the first time in a while, but getting an error when I try using prisma deploy:
    prisma.yml should NOT have additional properties. additionalProperty: generate
    my prisma.yml looks like this:
    Copy code
    endpoint: MY_ENDPOINT
    datamodel: datamodel.graphql
    
    generate:
      - generator: javascript-client
        output: .src/generated/prisma-client/
    
    hooks:
      post-deploy:
        - prisma generate
    c
    h
    • 3
    • 4
  • f

    Fi1osof

    04/09/2019, 2:27 AM
    Good day! Unfortunately, I can not recover the password on the forum (email not receive) and write a sequel to the article https://www.prisma.io/forum/t/prisma-cms-boilerplate/4604 My prisma-cms grows and now i can introduce online site builder 🙂 While this is a raw option, but it seems interesting is obtained:) See short video:

    https://youtu.be/tjfF-iruhJwâ–ľ

    Try it yourself: https://prisma-cms.com/ Ave prisma! 🙂
  • f

    Fi1osof

    04/09/2019, 2:28 AM
    Source: https://github.com/prisma-cms/prisma-cms.com
1...248249250...637Latest