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

    rajit

    01/03/2018, 12:26 AM
    Can anyone offer advice on updating my local cluster to the latest versions? I can’t find docs on how to do it and
    gc local pull
    just seems to re-fetch the pinned version (in my case 0.9)
  • r

    rajit

    01/03/2018, 12:40 AM
    I figured it out —
    npm install -g graphcool
    followed by
    gc local up
    automatically installed the latest versions
  • k

    Kelvin

    01/03/2018, 2:01 AM
    Has anyone run graphcool locally on a mac? I'd like to use it as a dev server. When I run graphcool-framework deploy I cannot choose local and only seem to have the remote options available.
  • k

    Kelvin

    01/03/2018, 2:11 AM
    @here, oops, forgot to start docker. better now
  • v

    Vinh Huynh

    01/03/2018, 4:07 AM
    Has anyone to clone project with including Functions?
  • p

    Phu Phan

    01/03/2018, 4:20 AM
    @nilan Please help me to check the issues of Functions page. I can not work with it!
    n
    • 2
    • 7
  • m

    matty

    01/03/2018, 8:12 AM
    @nilan - fyi, cannot click on most links in the left hand menu of the docs website (Chrome latest)
    n
    • 2
    • 10
  • j

    jsvde

    01/03/2018, 10:35 AM
    are there any plans on expanding the graphcool console with some actual admin/cms functionality?
    t
    • 2
    • 2
  • j

    jsvde

    01/03/2018, 10:37 AM
    I really enjoy data modeling in the console and have a gui next to the actual schema, but after adding data, the management is not really trivial via the console.
  • j

    jsvde

    01/03/2018, 10:37 AM
    talking about console.graph.cool not the cli btw.
  • j

    jsvde

    01/03/2018, 10:40 AM
    I'm thinking of something like the graphCMS dashboard, where you can define not only int/string/etc. as data types but actual location/color/datetime etc.
  • j

    jsvde

    01/03/2018, 10:41 AM
    just some food for thought i guess, would love to have this in the console 🙂
  • r

    rajit

    01/03/2018, 10:42 AM
    How should subscriptions work when items are DELETED? I request
    previousValues
    but get an error
    Insufficient permissions
    even if I use the root token. If I can’t get the data then I don’t know what’s been deleted
  • r

    rajit

    01/03/2018, 10:45 AM
    This part of the documentation suggests that it should work fine: https://www.graph.cool/docs/reference/graphql-api/subscription-api-aip7oojeiv#subscribing-to-deleted-nodes
  • r

    rajit

    01/03/2018, 10:51 AM
    Is it maybe a known issue?
  • i

    idanwe

    01/03/2018, 10:54 AM
    Is it possible to define two operationBefore to the same operation. my use case is something like that:
    Copy code
    validateParent:
    type: operationBefore
    operation: Child.create
    handler:
    code:
    src: src/validateParent.js
    
    addChildPaymentData:
    type: operationBefore
    operation: Child.create
    handler:
    code:
    src: src/addChildPaymentData.js
    And I got the following error:
    A Request Pipeline Function for type Child, the trigger ‘CREATE’ and the step ‘TRANSFORM_ARGUMENT’ already exists in your project
  • i

    idanwe

    01/03/2018, 11:56 AM
    Is it possible to add field to a type of a custom resolver? or only to add top level query?
    m
    • 2
    • 7
  • r

    radicand

    01/03/2018, 12:59 PM
    is it possible to execute a "bulk delete" via a mutation (e.g., pass in an array of IDs)?
    s
    • 2
    • 3
  • r

    Rahul

    01/03/2018, 1:07 PM
    Can someone help me to implement authentication and authorization using passport.js and graphql
    t
    l
    • 3
    • 9
  • h

    hvillain

    01/03/2018, 2:11 PM
    Has anyone encountered this error message on mutation
    Error: 'Model' already has an item with id ...
    (where 'Model' is the type of document I want to create)? I've been trying to find out the related document that may exist on related tables but it doesn't seem to exist
    🙏 1
  • s

    stearm

    01/03/2018, 2:17 PM
    Hi guys! I would like to extend an object returned from the server but I’m receiving
    Uncaught TypeError: Cannot add property logged, object is not extensible
    h
    h
    • 3
    • 6
  • s

    stearm

    01/03/2018, 2:17 PM
    is it a bad practice? how can I do it?
  • c

    Chipo

    01/03/2018, 3:01 PM
    Hi guys, I just discovered Graphcool and all tutorials made my day. So i decided to try it right now to develop a new Phonegap application. I follow documentation step by step. But now i'm stuck into local cluster deployment step. It seems that mysql container is not ok : First time, the "local up" function looped on "Waiting for Graphcool to initialize. This can take several minutes..." ===> docker logs from graphcool-dev : "unable to connect to mysql" Then i stopped and removed containers, purged my old images and try again. Now, docker logs from db container :
    Copy code
    [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    [ERROR] --initialize specified but the data directory has files in it. Aborting.
    Do you have any idea how to correct this problem?
    m
    n
    • 3
    • 4
  • l

    Lotafak

    01/03/2018, 3:39 PM
    Hey @nilan. I saw that there are some issues regarding being stuck in ‘Applying changes’ when deploying locally. Is there any progress on that issue?
    n
    • 2
    • 1
  • r

    rajit

    01/03/2018, 4:00 PM
    If anyone is having issues with subscribing to DELETED mutations on a client websocket, getting
    Insufficient permissions
    , I solved it by allowing anyone to read the id field. My main permission query was preventing me reading
    previousValues
    at all for some reason.
  • l

    Lotafak

    01/03/2018, 5:12 PM
    By implementing server with graphql-yoga and graphcool@beta and making requests to server endpoint, not to the graphcool endpoint directly how to work with Apollo on client side (Angular)? Previously I was sending requests like:
    Copy code
    this.apollo.mutate({ mutation: 
      mutation Login($email: String!, $password: String!) {
        login(email: $email, password: $password) {
          token
        }
      }
    , variables: 
      {
        email: "x",
        password: "x"
      }
     })
    and now for endpoint to work I should send query like
    Copy code
    "mutation {
      login(email: "x", password: "x") {
    		token
      }
    }"
    What is the best approach now to work with?
    n
    • 2
    • 6
  • m

    Maxime Scibetta

    01/03/2018, 8:00 PM
    Hi all someone know why I have this warning during subscription return

    https://puu.sh/yTyDW/12857b8c96.png▾

    j
    • 2
    • 5
  • t

    tekk

    01/03/2018, 8:35 PM
    Is there an example somewhere of using a resolver to generate just a slightly modified version of an existing API query. Such as creating a resolver called
    allValidGames()
    that returns the same as the existing
    allGames()
    , only with a couple filters applied?
    m
    • 2
    • 1
  • i

    iamclaytonray

    01/03/2018, 9:31 PM
    Does anyone know how to connect to Sequel Pro from a local GC instance? It won’t connect for me
    • 1
    • 1
  • m

    matty

    01/03/2018, 11:21 PM
    Are
    createOrUpdate
    mutations documented and/or supported now?
1...492493494...637Latest