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

    anton-b

    09/11/2017, 9:08 PM
    Is it possible to use a returned value from the first query in a mutation call, and use it as a variable in the second query?
    Copy code
    createUser(
          authProvider: {
            email: {
              email: $email,
              password: $password
            }
          }
        ) {
          id // this should be used as $userId in 'createHandler'
        }
    
        createHandler(
          firstName: $firstName,
          lastName: $lastName,
          email: $email,
          userId: $userId // <-- this one
        ) {
          id
        }
    a
    d
    • 3
    • 9
  • l

    lastmjs

    09/11/2017, 10:22 PM
    I would like to clone a project in the EU region to a new project in US West. Is that possible?
    a
    a
    • 3
    • 5
  • z

    zaksingh

    09/12/2017, 4:03 AM
    graphcool is refusing to delete data - I press the delete button, but the data does not get deleted. What should I do?
    a
    • 2
    • 1
  • o

    oxyoxy88

    09/12/2017, 7:04 AM
    Is there an easy way to insert mockup data into graphcool?
  • d

    dannyql

    09/12/2017, 7:14 AM
    playground
  • d

    dannyql

    09/12/2017, 7:14 AM
    @oxyoxy88 https://console.graph.cool/&lt;project_name&gt;/playground
  • j

    Jess Telford

    09/12/2017, 7:59 AM
    How do I pass the correct parameters to
    updateOrCreateRSVP
    ? The
    UpdateRSVP
    input is required, and also has a required
    ID
    . So, I can't figure out how to call this mutation without already having an ID, which is a catch 22 for the first time I call it šŸ˜•
    updateOrCreateRSVP.txt
  • j

    Jess Telford

    09/12/2017, 8:10 AM
    I can split this up over two different mutations (
    createRSVP
    /
    updateRSVP
    ), but the Apollo code that is way too verbose šŸ˜ž
  • j

    Jess Telford

    09/12/2017, 8:11 AM
    I figured it out! Pass an empty string
    ""
    , not
    null
    for the
    update
    !
    Copy code
    {
      "id": "",
      "eventId": "cj7bsje03naa9015947x8yvld",
      "userId": "cj7flbi7rpd620112ouuim79l"
    }
  • j

    Jess Telford

    09/12/2017, 8:11 AM
    Thanks duckies! šŸŽ‰
  • j

    Jess Telford

    09/12/2017, 8:18 AM
    Opened a PR against the docs: https://github.com/graphcool/content/pull/290
  • j

    Jess Telford

    09/12/2017, 8:18 AM
    šŸ‘‹
  • m

    matty

    09/12/2017, 8:51 AM
    I noticed PRE_WRITE function hook is deprecated... if I need to synchronously call an external API and then update the payload written to graphcool, is the best option now to use the TRANSFORM_ARGUMENT hook, or use a schema extension?
    n
    • 2
    • 4
  • f

    freddie-codogo

    09/12/2017, 9:08 AM
    are permissions re-run for every sub-mutation inside a mutation? I have a
    mutation
    that contains 2
    updateNode
    operations on the same
    Node
    . The permission for the second
    updateNode
    is not satisfied until the first
    updateNode
    opperation has been applied, and I think this might explain why the second
    updateNode
    is failing...
    n
    • 2
    • 1
  • f

    freddie-codogo

    09/12/2017, 10:18 AM
    Hey all, could I borrow someone for a few minutes to go through a problem I'm having? I can't figure out how to proceed šŸ˜•
    a
    • 2
    • 2
  • m

    matty

    09/12/2017, 10:19 AM
    any docs on what features
    'use latest'
    gives?
    a
    • 2
    • 4
  • m

    matty

    09/12/2017, 10:26 AM
    also wondering how the beta testing of the feature to use the graphcool file to control functions & permissions also is going?
    n
    • 2
    • 3
  • u

    user

    09/12/2017, 10:46 AM
    @agartha commented on @Jess Telford’s file https://prisma.slack.com/files/U72FZLNB0/F72G32NF8/updateOrCreateRSVP.txt:
    id: ""
    updateOrCreateRSVP.txt
  • h

    hristoeftimov

    09/12/2017, 11:37 AM
    Hello everybody, is there an option to do a
    count query
    ? I want to receive the number of the posts… I don’t need their titles, ids or something like that šŸ™‚
    a
    • 2
    • 2
  • m

    matty

    09/12/2017, 11:42 AM
    when I create a SSS in the UI and it asks me which object to use as the trigger, does that need to be accurate? can I just click next and then paste whatever subscription query in there?
    n
    • 2
    • 3
  • m

    matty

    09/12/2017, 11:43 AM
    reason being I'm going through and copying a lot of functions from dev to staging right now... if it needs to be accurate, might be a good idea to show it in the table of functions UI so I can make sure I haven't made any mistakes during the copy of functions
  • m

    matty

    09/12/2017, 12:13 PM
    ah just ran into an odd issue, copying a graphcool file into a new environment...
    [String!]
    got transformed into
    [String!]!
    n
    • 2
    • 5
  • m

    matty

    09/12/2017, 12:14 PM
    causing an issue with a mutation on the client-side, creating this error:
    Copy code
    Variable '$tags' of type '[String!]' used in position expecting type '[String!]!'
  • m

    matty

    09/12/2017, 12:20 PM
    So I was able to workaround by removing the
    !
    in the console and then use
    graphcool pull
    . huh - strange.
  • m

    matty

    09/12/2017, 12:20 PM
    also I noticed upon graphcool pull the enums were moved, signalling perhaps that the
    push
    is not completely syncing the local file
    n
    • 2
    • 2
  • j

    joar

    09/12/2017, 1:16 PM
    Just got an email regarding the deprecation of PRE_WRITE. Did you send it out too early? ā€œoperationBeforeā€ doesnt exist in my console / functions manager
  • j

    joar

    09/12/2017, 1:16 PM
    (I know its TRANSFORM_ARGUMENT, just want to make sure im not missing anything)
  • n

    nilan

    09/12/2017, 1:17 PM
    You're not missing anything,
    operationBefore
    and
    TRANSFORM_ARGUMENT
    are identical, it's just a change in terminology that will take some time to be reflected everywhere (docs, console, ...)
  • j

    joar

    09/12/2017, 1:20 PM
    Ok cool
  • f

    Flo Ledermann

    09/12/2017, 1:27 PM
    Hi all I have a question for the chromeless npm package maintainers...
1...336337338...637Latest