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

    tylim

    01/11/2019, 12:17 PM
    heh guys, how can i store image/file in database?
  • k

    k0ff33

    01/11/2019, 12:23 PM
    Hello, 2 days ago I’ve deployed a Prisma server to Heroku (using Prisma Cloud), it’s working fine and shows up in the Servers tab in Prisma Cloud but doesn’t show any Services. Because of that I can’t access data through Prisma Cloud databrowser. Any ideas how to fix that? Tried running
    prisma init
    or
    prisma deploy
    couple of times but without luck. Thanks!
  • r

    rem

    01/11/2019, 12:59 PM
    I'm newly (returning) to prisma, but on the app.prisma.io site, the new service I make is perpetually stuck on "Waiting for the deployment..." - even though the
    prisma deploy
    is successful (or at least doesn't error). Is there some bug, or way to force it or is there some issue with the prisma online bits?
    h
    s
    • 3
    • 12
  • r

    rem

    01/11/2019, 1:02 PM
    I also just tried to "create a new hosted server" and right before I could sign into heroku, I was thrown back to the authenticate page…
    s
    • 2
    • 1
  • s

    Sagar Tambe

    01/11/2019, 2:36 PM
    I am building serverless application where I need integration of Apollo server and AWS cognito service. Right now I am facing issue apollo server is returning error {“body”:“Apollo Server supports only GET/POST requests.“,”statusCode”405,“headers”{“Allow”:“GET, POST”}} Its because in my serverless.yml I am using lambda integration type as
    lambda
  • d

    Doug Lance

    01/11/2019, 3:24 PM
    Is Prisma certified HIPAA compliant?
  • b

    Bert

    01/11/2019, 3:30 PM
    We're trying to set up a fairly complicated schema and using MySQL and we don't want to use link tables for our relationships, ideally it would be an inline link. Does anyone know how to get this to work? We've tried using the @relation directive but it still seems to just spit out link tables...
    s
    m
    • 3
    • 6
  • b

    Brian

    01/11/2019, 4:29 PM
    Hi, I’m currently using prisma-yoga with a prisma db cloud instance which is working great. I want to pull in some blog post content using the wordpress graphql plugin https://github.com/wp-graphql/wp-graphql I would like to handle one endpoint on the client side /graphql and let yoga control the two data sources on the server. Any advice on the best way to achieve this would be great. I did find a post which discusses using multiple prisma api’s https://www.prisma.io/forum/t/using-multiple-graphql-servers-with-one-shared-service/3644/4
    e
    b
    • 3
    • 3
  • a

    Anthony

    01/11/2019, 4:51 PM
    I'm trying to set an 'Authorization' cookie using request.response.cookie in the resolver for my login. Is this the correct way to go about this because a cookie is never set
    h
    l
    j
    • 4
    • 32
  • r

    rem

    01/11/2019, 5:07 PM
    Has anyone seen
    TypeError: Cannot read property 'type' of undefined
    on a first time
    prisma generate
    (and have any advice)?
    b
    • 2
    • 3
  • w

    windkomo

    01/11/2019, 6:35 PM
    Hi guys, I’m using prisma generated types in my api code like this
    Copy code
    import { User } from '../../generated/prisma';
    My front-end uses some typescript as well and I’m wondering if I could (and should) use these types on the front-end as well?
    c
    • 2
    • 5
  • g

    Gridley123

    01/11/2019, 6:41 PM
    I have a self-relation field in my datamodel (relatedLatoms). When I use the createLatom method, how do I make sure that both the relatedLatom field of the new Latom, and the relatedLatom field of the related Latom are both updated with each other?
    -.txt
    k
    • 2
    • 1
  • g

    Gridley123

    01/11/2019, 6:42 PM
    Grateful for any help
  • g

    Gridley123

    01/11/2019, 6:43 PM
    This code only seems to update the relatedLatom field of the new Latom:
  • g

    Gridley123

    01/11/2019, 6:43 PM
    -.php
  • j

    joselfonseca

    01/11/2019, 8:26 PM
    .
  • j

    joselfonseca

    01/11/2019, 8:28 PM
    re: prisma bindings console.log
    w
    • 2
    • 10
  • s

    Sam

    01/11/2019, 10:36 PM
    Someone help me understand what Prisma is? Is it just a ORM? If so, why does it require docker?
  • f

    faure

    01/12/2019, 2:33 AM
    Can I specify for string field to be unique only when not empty? (I.e.
    ""
    )
  • f

    faure

    01/12/2019, 2:34 AM
    I have a create/edit form with an optional email field, when it's not given by the user it sends the empty string. When a second user doesn't input their email, it'll complain it's not unique.
  • f

    faure

    01/12/2019, 2:36 AM
    You might say it's better to make the form not send the email field in the mutation if it's empty. But how would I handle it if it's an edit form and the user is removing their email (thus leaving an empty string in the field)? Not sending it would make the original email remain there.
    k
    • 2
    • 4
  • m

    Moritz

    01/12/2019, 10:17 AM
    Good morning, I have a short question: How can I filter for fields that have an optional relation set to
    null
    ? For example, I would like to get all users where
    partner: Partner
    is not set/disconnected. Thanks in advance!
  • a

    andrux

    01/13/2019, 2:32 AM
    hey all, is it possible to run
    db.mutation.createUser()
    with multiple
    UserCreateInput!
    objects? I tried it as an array but it didn’t work
  • a

    andrux

    01/13/2019, 2:33 AM
    I’m getting this error:
    Copy code
    { GraphQLError: Field "createUser" argument "data" of type
     "UserCreateInput!" is required but not provided.
    k
    • 2
    • 1
  • c

    cristianexer

    01/13/2019, 4:10 PM
    Hello everyone. I was wondering if someone managed to deploy prisma and postgresql on CloudFormation. I am having some issues creating a database and connecting it to prisma
  • c

    CCBCodeMonkey

    01/13/2019, 5:54 PM
    @cristianobaptista I ended up doing it
  • c

    CCBCodeMonkey

    01/13/2019, 5:54 PM
    but it was a pain to set up and I ended up switching away from it and just doing a DB and using prisma cloud with the DB
  • j

    jamiehalvorson

    01/13/2019, 10:52 PM
    Hi, I’ve just run
    prisma import
    pulling our prod db into local for some testing, however, its not imported any of the
    relations
    . I’ve opened the zip from the export and I can see that all of our relations are in
    relations/000001.json
    . Has anyone else had this issue or know what might be happening? When I look at one of the relation tables in Sequel Pro (
    _ClassToFile
    ) there are no rows, however, in the JSON file there are 95
    _ClassToFile
    relations. Prod is running
    Prisma 1.15.x
    and my local is running
    Prisma 1.23.4
    • 1
    • 1
  • t

    tylim

    01/14/2019, 7:59 AM
    Copy code
    // Update name of a specific user and retrieve the `id`
    prisma.mutation.updateUser({ where: { id: 'abc' }, data: { name: 'Sarah' } }, '{ id }')
    this is example i found on prisma binding how to query single field of database(not sure i worded it correct or not) how it works, is it query all fields then filter it out or is it query only that field?
    m
    • 2
    • 1
  • z

    zonofthor

    01/14/2019, 10:06 AM
    How is this possible - this has to be a major bug? Datamodel:
    Copy code
    type Test {
      id: ID! @unique
      wicked0: [String]
      wicked1: [String!]
      wicked2: [String!]!
    }
    becomes on prisma
    Copy code
    Fields
    id ID!
    wicked0 [String!]!
    wicked1 [String!]!
    wicked2 [String!]!
    and gql-gen
    Copy code
    type Test implements Node {
      id: ID!
      wicked0: [String!]!
      wicked1: [String!]!
      wicked2: [String!]!
    }
    m
    • 2
    • 7
1...188189190...637Latest