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

    Dukuo

    11/20/2017, 6:17 PM
    lemme get some resources
  • d

    Dukuo

    11/20/2017, 6:19 PM
    @elmir are you using
    functions
    or the automatic schema created by graphcool?
  • e

    elmir

    11/20/2017, 6:19 PM
    Atm I'm using a function to do this
  • d

    Dukuo

    11/20/2017, 6:19 PM
    then I think it's a matter of getting the value from the record itself
  • e

    elmir

    11/20/2017, 6:20 PM
    Currently getting the records and looping through them and updating each lol
  • d

    Dukuo

    11/20/2017, 6:20 PM
    and counter++
  • d

    Dukuo

    11/20/2017, 6:20 PM
    yeah that's one solution you could do
  • d

    Dukuo

    11/20/2017, 6:20 PM
    not related to this, but can I run permission queries in the stand-alone electron app ?
  • e

    elmir

    11/20/2017, 6:21 PM
    are you asking me? because I have no idea what electorn is
  • d

    Dukuo

    11/20/2017, 6:21 PM
    lol to everyone
  • d

    Dukuo

    11/20/2017, 6:22 PM
    i'm referring to this btw @elmir https://github.com/graphcool/graphql-playground
  • e

    elmir

    11/20/2017, 6:25 PM
    I typically just modify it without the parameters and run it
  • e

    elmir

    11/20/2017, 6:25 PM
    @Dukuo
  • e

    elmir

    11/20/2017, 6:25 PM
    I also highly recommend re-using htem
  • e

    elmir

    11/20/2017, 6:25 PM
    them *
  • e

    elmir

    11/20/2017, 6:26 PM
    @Dukuo btw, how do you test your functions locally, if any way at all? instead of having to deploy and then simulate the query?
  • d

    Dukuo

    11/20/2017, 6:26 PM
    because there's an special tab to run permission queries
  • d

    Dukuo

    11/20/2017, 6:27 PM
    when you click on Playground in the web console, then hit the key icon of the top right corner of the screen
  • d

    Dukuo

    11/20/2017, 6:27 PM
    after that, you should select either a Model or a Relation to run the permission queries against
  • d

    Dukuo

    11/20/2017, 6:27 PM
    there you have access to some useful variables
  • d

    Dukuo

    11/20/2017, 6:27 PM
    well, not so much useful for me since I can't run any queries from there LOL
  • d

    Dukuo

    11/20/2017, 6:29 PM
    just posted an issue about it https://github.com/graphcool/framework/issues/1305
  • d

    Dukuo

    11/20/2017, 6:32 PM
    cc @nilan
  • d

    Dukuo

    11/20/2017, 6:33 PM
    hey @elmir I forgot about something
  • d

    Dukuo

    11/20/2017, 6:34 PM
    the
    event
    payload from your mutation should have a `event.data`with your record's values, so then you could feed it to the update mutation without the need to fetch the record again from your function
  • c

    chandni

    11/20/2017, 6:36 PM
    Where can I ask questions/ solve issues on chromeless/serverless? Thanks
  • d

    Dukuo

    11/20/2017, 6:38 PM
    @chandni if your issue is related to GraphCool you can use the forum (http://graph.cool/forum) or post an issue in the framework's repository (https://github.com/graphcool/framework/issues)
  • k

    kaihuang724

    11/20/2017, 7:18 PM
    Question regarding graphcool CLI - how do i pull the changes that were previously deployed?
  • d

    Dukuo

    11/20/2017, 7:27 PM
    @kaihuang724 i think the team is working on a solution for that in the form of migrations
  • d

    Dukuo

    11/20/2017, 7:27 PM
    it's a WIP so far
1...440441442...637Latest