https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • e

    ed

    01/30/2018, 5:27 PM
    Hi guys, 1 question when I make a mutation using aliases e.g
    Copy code
    mutation {
      addFriends1: addFriend(id: 1) {id},
      addFriend2: addFriend(id: 2) {id}
    }
    in the database query is it executed as 1 transaction or they are executed as 2 independent transactions? Thanks in advance
  • w

    wesbos

    01/30/2018, 5:55 PM
    another question - once I have created my graphql datamodel, and then created a graphql schema for Yoga, do I then need to make a third set of queries/mutations on my frontend? (using apollo) or can I share this somehow?
    d
    • 2
    • 3
  • j

    janz

    01/30/2018, 6:03 PM
    hmm is graphcool down?
    e
    t
    +6
    • 9
    • 23
  • u

    upwork guru

    01/30/2018, 7:07 PM
    hi
  • u

    upwork guru

    01/30/2018, 7:08 PM
    I'm beginner in graphql so I'd like you to help me.
    d
    h
    • 3
    • 2
  • k

    kpfeuffer

    01/30/2018, 7:21 PM
    hi there, does anyone else get a network error when updating a function? (i'm on ff58.0.1)
    j
    n
    • 3
    • 5
  • e

    ed

    01/30/2018, 7:42 PM
    are nested updates available for graphcool already?
  • w

    wesbos

    01/30/2018, 7:46 PM
    How can I connect directly to the prisma DB?
    disableAuth: true
    doesn’t seem to work
    h
    l
    n
    • 4
    • 10
  • q

    qsys

    01/30/2018, 7:53 PM
    do I get it right that, when using graphcool CLI, the
    env
    variables can't be set in
    .graphcoolrc
    or in
    graphcool.yml
    ? This means, if having different projects, one would need to re`export` the `env`s everytime again, when switching graphcool cli project?
    n
    • 2
    • 4
  • r

    rwatts3

    01/30/2018, 8:13 PM
    This question has been asked on the Forums, i'm hoping someone here may have solved or answered the question already. With that said how does one go about splitting their schema into multiple files or modularizing the schema in prisma https://www.graph.cool/forum/t/ability-to-split-schema-into-multiple-files/2286/3
    j
    • 2
    • 3
  • w

    wesbos

    01/30/2018, 8:17 PM
    Sorry for all the questions - I’m just really confused. Do I really need to re-create the entire API with yoga? Is there no way to expose the prisma API to the client while still adding auth? I just want the auto-generated API because it’s really nice, but I feel like I get none of that benefit once I put yoga infront of it
    n
    d
    a
    • 4
    • 3
  • w

    wesbos

    01/30/2018, 8:18 PM
    like all the filtering - how do I use that in the client like I did with GraphCool?
    n
    v
    h
    • 4
    • 34
  • s

    sajmil

    01/30/2018, 9:28 PM
    is there any way to see the IP address in a request pipeline, or a server side subscription?
  • s

    steven

    01/30/2018, 9:46 PM
    Following the 4 minute YouTube Prisma demo, Setup TypeScript Advanced GraphQL Server when I tried mutation{ createDraft(title:"my draft", text:"yada yada"){ id } } Got back error of "message": "Not authorized", I even signed in and logged in using another tab and got a token How do I become authorized to create a draft? Even tried - disableAuth: true in prisma.yml and get the same error
    ✅ 1
    l
    n
    • 3
    • 14
  • j

    jjaybrown98

    01/30/2018, 9:56 PM
    anyone seeing
    Server response was missing for query'null'
    errors with prisma? I don't believe I'm making a high freq of requests
    n
    v
    • 3
    • 19
  • a

    anton-b

    01/30/2018, 10:04 PM
    Has anyone here tried deploying their Prisma service to Heroku? I'm trying to figure out the proper way to set everything up. 🤔
    n
    • 2
    • 3
  • j

    joe

    01/30/2018, 11:21 PM
    looking for a little help, because my graphql endpoint uses cookies for auth (it is hosted on the same domain as the playground); it appears that https://github.com/graphcool/graphql-playground/pull/274 and https://github.com/graphcool/graphql-playground/pull/470 and https://github.com/graphcool/graphql-playground/pull/546 are required for me to successfully use the library. is there a way to use the library via a
    "graphql-playground": "graphcool/graphql-playground#1.4.2"
    dependency? is there a plan to publish a new release on npm in the near term?
  • j

    joe

    01/30/2018, 11:22 PM
    also interested in programmatic ways to set settings (e.g.
    "request.credentials": "include"
    )?
  • j

    joe

    01/30/2018, 11:24 PM
    sorry, i probably should have posted that in #playground, so i've gone ahead and cross-posted there
  • q

    Q

    01/31/2018, 2:21 AM
    Can anyone help me get through uploading files? The docs on the javascript fetch are really vague and I'm getting 500 error even though I have the file/contentType as multipart form data
  • q

    Q

    01/31/2018, 2:32 AM
    😞
  • q

    Q

    01/31/2018, 3:03 AM
    Anyone?
    👽 1
  • k

    Kimiiz

    01/31/2018, 3:41 AM
    Can i do Unique field in database based on 2 fields type User @model { email: String! role: UserRole! }
  • c

    ckelley

    01/31/2018, 5:22 AM
    Hey all, having an issue with Prisma's update mutation:
    Copy code
    const updateUser = await ctx.db.mutation.updateUser(
                {
                    where: { id: user.id },
                    data: {
                        password: hash,
                        resetToken: null,
                        resetExpiry: null
                    },
                }
            )
    When I run this mutation, nothing happens to
    resetToken
    and
    resetExpiry
    in the db (their values don't get set to
    null
    ). They're not required in my data model, either:
    Copy code
    #
        verifyToken: String @unique
        resetToken: String @unique
        resetExpiry: DateTime
    Anyone else experiencing this issue? I'm on prisma@1.1.2
    m
    n
    • 3
    • 22
  • j

    jabelone

    01/31/2018, 5:22 AM
    Hey where's the best place to ask about Chromeless? I need to download files inside the chrome session whilst running via the lambda proxy which isn't supported at the moment. (I'm willing to spend time and implement it if it's not super complex)
  • j

    Jay

    01/31/2018, 5:30 AM
    Recently started getting 504 gateway timeouts using the simple api
  • j

    Jay

    01/31/2018, 5:30 AM
    Can't connect to console either
  • m

    mark.james

    01/31/2018, 5:39 AM
    Same here. For roughly the last 20 mins.
  • m

    Mark

    01/31/2018, 5:58 AM
    Same. My app is down yet again
  • m

    Mark

    01/31/2018, 5:58 AM
    And https://status.graph.cool/ still shows that everything is normal.
1...552553554...637Latest