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

    muhajir

    12/20/2018, 10:13 AM
    Hi guys, Wondering what’s the limitation of prisma cloud free plan? No bandwidth or storage limitation?
    n
    • 2
    • 1
  • b

    bhasky93

    12/20/2018, 11:06 AM
    Hi Everyone.
  • b

    bhasky93

    12/20/2018, 11:06 AM
    Is there any client library for prisma in ruby?
    d
    • 2
    • 1
  • s

    Steve

    12/20/2018, 1:11 PM
    is this ever going to get pulled in ? https://github.com/prisma/serverless-plugin-typescript/pull/100
  • s

    Steve

    12/20/2018, 1:15 PM
    or this one https://github.com/prisma/serverless-plugin-typescript/pull/109
  • j

    jdoyle112

    12/20/2018, 3:18 PM
    Hello all. Having an issue, hopefully someone here can help. I have a prisma server with a mutation where I’m trying to pass an ID to make a connection. Here is what it looks like.. createNotification(title: String!, message: String!, seen: Boolean, type: NotificationType, userId: ID!): Notification! But I get an error saying “userId is not defined. Did you mean user?”
    p
    • 2
    • 21
  • j

    jdoyle112

    12/20/2018, 3:18 PM
    Here is the type in the schema.. type Notification { id: ID! @unique user: User! title: String! message: String! createdAt: DateTime! seen: Boolean @default(value: false) type: NotificationType }
  • j

    jdoyle112

    12/20/2018, 3:19 PM
    I’ve used this same approach to make user connections on other Mutations. Don’t understand why it’s not working here
  • s

    Simon Rycroft

    12/20/2018, 4:17 PM
    Hi I'm trying to get the go graphql example running on my Mac. When I send a query to http://localhost:4000 I get:
    Copy code
    {
      "data": null,
      "errors": [
        {
          "message": "Post : unsupported protocol scheme \"\"",
          "path": [
            "feed"
          ]
        }
      ]
    }
    Any ideas?
    n
    • 2
    • 68
  • s

    shawneegao

    12/20/2018, 8:04 PM
    👋 from San Francisco!
  • s

    shawneegao

    12/20/2018, 8:04 PM
    My team is using the Apollo client for Ember. We are trying to figure out a better pattern for making paginated queries. (Hope this is a good place to ask!) Currently we have a service that queries a paginated list of Type Cases. Cases are the leaf nodes of a heavily nested query (part of a complicated business object). Currently my team is using 3 methods to manage 1 paginated endpoint: 1. queryCases for making the initial watchQuery call (returns a query reference) 2. loadMoreCases to call fetchMore and updateQuery (returns a query reference) 3. getNodes helper function to return the actual nodes. I believe the model using the service shouldn’t have to know the structure of the graphql query. This feels like an inefficient implementation/not really great developer experience. Are there better pattern suggestions?
    a
    • 2
    • 8
  • l

    Lucas

    12/21/2018, 2:51 AM
    Copy code
    type Link {
      id: ID!
      createdAt: DateTime!
      description: String!
      url: String!
      postedBy: User
      votes: [Vote!]!
    }
    
    type Image {
      id: ID!
      createdAt: DateTime!
      description: String!
      postedBy: User
      votes: [VoteImage!]!
    }
    
    type VoteImage {
      id: ID!
      image: Image!
      user: User!
    }
    
    type Vote {
      id: ID!
      link: Link!
      user: User!
    }
    got this
    h
    • 2
    • 2
  • l

    Lucas

    12/21/2018, 2:52 AM
    is this a correct way of thinking or should I reuse Vote somehow ?
  • t

    tylim

    12/21/2018, 11:02 AM
    heh guys, after i set the management key and add the server on prima.io, i am unable to view the service, is this expected?
  • a

    Arnout

    12/21/2018, 1:29 PM
    Hi, we currently have an application where we have to combine two different PostgreSQL databases holding parts of our data model. However, the total data model spans both databases, meaning that we have references between database 1 and database 2. For example, we have a one-to-many relationship in the data model for our group and unit entity, a group can hold multiple units. The group entity elements are stored in database 1 whereas the unit entity elements are stored in database 2. Would it be possible to use Prisma as an abstraction layer on top of these two databases?
    r
    • 2
    • 1
  • b

    benpetsch

    12/21/2018, 4:43 PM
    Hey guys, I've a quick question about constraints. Prisma documentation mentions constraints at database level are not implemented by now. What's the recommended way to handle constraints with postgres and prisma-cli? I tried to add constraints directly to the database. But mutations violating those checks result in error message "Whoops. Looks like an internal server error. Search your server logs for request ID: localapicjpy787mc25we0a28yq1ymv69" Any hints, where to go from here?
    d
    • 2
    • 1
  • r

    Ryo Lambert

    12/22/2018, 1:35 AM
    Anyone have any luck getting [@lawjolla](https://github.com/LawJolla/prisma-auth0-example/blob/master/server/database/prisma.yml) repo to work with Auth0 on an up to date package loadout of prisma? I've tried almost every way I could think of to debug the issues going on (facepalming and head-banging included) 🙃 Thus far I'm able to get everything setup and running I'm at an impasse with getting any data to successfully authenticate and pass onto my prisma demo service. I've narrowed down the issue to something along the lines of an error in how the json is being formatted, but can't seem to find any errors in the json tokens being passed to and from the client from Auth0. It's just with any attempt to post to my prisma service . Any ideas, thoughts, fixes, similar stories, prayers, condolences, etc sadparrot
    l
    • 2
    • 3
  • a

    Andres Montoya

    12/23/2018, 3:09 AM
    How can I update an one to many relation in TypeORM? I have this two tables: @Entity() export class User extends BaseEntity { @PrimaryGeneratedColumn("uuid") id: string; @Column("varchar", { length: 255 }) name: string; @Column("varchar", { length: 255 }) lastname: string; @OneToMany(_ => PersonalSocialNetworks, socialnetwork => socialnetwork.user) socialnetwork: PersonalSocialNetworks[]; } @Entity() export class PersonalSocialNetworks extends BaseEntity { @PrimaryGeneratedColumn("uuid") id: string; @Column("varchar", { length: 255 }) name: string; @Column("varchar", { length: 255 }) url: string; @ManyToOne(_ => User, user => user.socialnetwork) user: User; } In the docs only there's an example https://github.com/typeorm/typeorm/blob/master/docs/many-to-one-one-to-many-relations.md only inserting data, but not updating or deleting....
    l
    s
    +2
    • 5
    • 4
  • j

    jackgray

    12/23/2018, 4:33 PM
    Would anyone be so kind to point me to examples writing resolver functions for creating connections from two existing nodes, e.g. adding a post as a favorite to the user? (user: { favorites: args.id } )? I bought Wes Bos’s advanced react course and am really confused by the way he creates relations by adding an extra in-between type for connections. In his project, a connection becomes its own new object. Doesn’t this defeat the entire purpose of using GraphQL? Shouldn’t I be able to query Posts where favoritedBy: User, or query Users where favoritePosts: [Post] and get the same results?
  • h

    Heade

    12/23/2018, 6:19 PM
    can anyone help me with writing some resolver-es I really love to learn more and would appreciate any helping hand 🙂
  • d

    Dmitry

    12/23/2018, 7:37 PM
    Hi everyone! Did anyone try to connect two databases via prisma and could you help me how you did this?
  • c

    chan1di

    12/23/2018, 8:11 PM
    Hi can anyone tell me what am i doing wrong i uploaded this docker-compose.yml file on digitalocean and run it with “docker-compose up -d” it ran perfectly but the server kept throwing an error. I have attached the screenshot below take a look thanks. this is how my docker file looks like version: '3' services: prisma: image: prismagraphql/prisma:1.22 restart: always ports: - "8501:8501" environment: PRISMA_CONFIG: | port: 8501 databases: default: connector: mongo uri: mongodb+srv://demo:demo123@clussds-swas.mongodb.net/admin database: prisma
    o
    w
    • 3
    • 4
  • w

    Will

    12/24/2018, 5:58 AM
    Hi, Could someone explain why I would want React -> Apollo -> Prisma vs React -> Prisma ?
    w
    n
    • 3
    • 6
  • a

    Angelo

    12/24/2018, 8:41 AM
    Does someone have experience with importing data (JSON format) to Prisma?
  • s

    schickling

    12/24/2018, 6:08 PM
    Merry Christmas everyone! prisma xmas🎄
    fast parrot 1
    prisma xmas 3
    🎄 2
    🎉 3
  • i

    impowski

    12/24/2018, 7:46 PM
    How do I authorize inside subscription? I can’t even retrieve headers there
  • l

    Lucas

    12/25/2018, 3:02 AM
    Can someone do a quick look to this please? https://www.prisma.io/forum/t/typeerror-context-prisma-createimage-is-not-a-function/5474
  • x

    xiaoqf10

    12/25/2018, 4:18 AM
    graphql-import can not find "prisma.graphql" file in now.( I use now2.0 @now/node builder)
    -.js
    h
    • 2
    • 2
  • s

    Sean Urgel

    12/25/2018, 9:11 AM
    Hi I’m trying to update multiple items in my database. And in each update it relies on the previous data (incoming) in this case. Is there a better way to do this?
    -.js
  • m

    Marvin Jude

    12/25/2018, 2:25 PM
    Hello guys
1...179180181...637Latest