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

    sorenbs

    08/31/2017, 8:31 AM
    Hi @lkbr I’ll dm you
  • l

    lkbr

    08/31/2017, 8:42 AM
    Fixed. Much appreciated @sorenbs
  • g

    geg

    08/31/2017, 9:35 AM
    Hello, is there any update on https://github.com/graphcool/graphcool-cli/issues/123 ? Ive been also running into it 😕
  • o

    otissv

    08/31/2017, 9:46 AM
    Hi, I reposted here as react channel is a bit dead. I'm following the relay modern tutorial

    https://www.youtube.com/watch?v=XeALXh37WeU▾

    and trying to recreate a simple note app using your relay api but I can't update the store as the connection returns undefined. Could someone tell me what I'm doing wrong? The full code can be found at https://github.com/otissv/relay-modern-note-app.git create mutation
    Copy code
    const config = {
        mutation,
        variables,
        optimisticUpdater: proxyStore => {
          // 1 - create the `newNote` as a mock that can be added to the store
          const id = 'client:newNote:' + tempID++;
          const newNote = proxyStore.create(id, 'Note');
          console.log(newNote);
          console.log(variables);
    
          newNote.setValue(id, 'id');
          console.log(variables);
          Object.keys(variables.input).forEach(key =>
            newNote.setValue(variables.input[key], `${key}`)
          );
    
          // // 2 - add `newNote` to the store
          const viewerProxy = proxyStore.get(viewerId);
          console.log(viewerProxy);
          const connection = ConnectionHandler.getConnection(
            viewerProxy,
            'ListPage_allNotes'
          );
    
          if (connection) {
            ConnectionHandler.insertEdgeAfter(connection, newNote);
          }
        },
        updater: proxyStore => {
          // 1 - retrieve the `newNote` from the server response
          const createNoteField = proxyStore.getRootField('createNote');
          const newNote = createNoteField.getLinkedRecord('Note');
    
          // 2 - add `newNote` to the store
          const viewerProxy = proxyStore.get(viewerId);
          const connection = ConnectionHandler.getConnection(
            viewerProxy,
            'ListPage_allNotes'
          );
          if (connection) {
            ConnectionHandler.insertEdgeAfter(connection, newNote);
          }
        },
        onError: error => console.log(error)
      };
    
      commitMutation(environment, config);
    }
    Thank you.
  • e

    eerrecalde

    08/31/2017, 11:15 AM
    Hi All, is there a way to get chromeless working with jenkins in Ubuntu (not using aws)? Doesn't look like there is, but thought it might be worth asking
  • c

    christbkk

    08/31/2017, 11:35 AM
    hi guys i have a problem
  • c

    christbkk

    08/31/2017, 11:36 AM
    same problem as here https://www.graph.cool/forum/t/having-problem-integrating-auth0-to-graphcool/330
    d
    • 2
    • 3
  • p

    Pieter

    08/31/2017, 2:13 PM
    @nilan I can't seem to get this working within Apollo: https://www.graph.cool/forum/t/cannot-pass-a-string-as-an-enum-in-mutation/362
  • p

    Pieter

    08/31/2017, 2:14 PM
    when I call
    mutate({variables: {foo: 'bar' })
    it says it got a string instead of the enum, but how do you use the enum then if it isn't expecting a string?
    n
    • 2
    • 3
  • s

    senorcodecat

    08/31/2017, 2:36 PM
    Anyone else having issues with connecting to the console?
    n
    • 2
    • 5
  • m

    marsupio

    08/31/2017, 4:12 PM
    Hi guys, it seems to me that this problem wasn't solved: https://www.graph.cool/forum/t/stuck-with-connect-permissions/665/8
  • m

    marsupio

    08/31/2017, 4:13 PM
    Because if I put on the CONNECT permission for example SomeProjectExists, during the creation of the project this will fail
    d
    • 2
    • 2
  • d

    doug_w

    08/31/2017, 4:17 PM
    If you are using Auth0 with GraphCool and implement solid authorization and permission queries (like this tutorial: https://www.graph.cool/docs/tutorials/authorization-content-management-system-miesho4goo/).. Do you even bother with roles/scope from the Auth0 side of things?
    d
    a
    • 3
    • 4
  • g

    gmuresan

    08/31/2017, 4:24 PM
    I think I found a bug. I’m trying to completely overwrite a one to many relation with a new array of IDs but it keeps telling me that I don’t have sufficient permissions If I remove the permission query from that permission object, then the mutation works
    d
    n
    • 3
    • 25
  • m

    marsupio

    08/31/2017, 5:38 PM
    Hey maybe I found a solution at this https://www.graph.cool/forum/t/stuck-with-connect-permissions/665/11 Let me know if it doesn't work
    👍 1
  • n

    nilan

    08/31/2017, 5:54 PM
    Thanks @mattd, you're experiencing this issue: https://github.com/graphcool/console/issues/1156
    🚤 2
  • n

    nilan

    08/31/2017, 5:55 PM
    If you want to delete nodes in a relation, you need to make that relation optional 🙂
  • m

    mattd

    08/31/2017, 5:55 PM
    Ahhh good to know. Thanks!
  • d

    doug_w

    08/31/2017, 6:14 PM
    Is there a way to sync your local schema with the remote schema? IE the opposite of
    graphcool push
    . Or is it best practice to handle all schema updates locally then push it up to the remote?
  • m

    mwickett

    08/31/2017, 6:14 PM
    graphcool pull
    should do it.
  • d

    doug_w

    08/31/2017, 6:14 PM
    ha well that’s obvious 😂
  • m

    mwickett

    08/31/2017, 6:14 PM
    🙂
  • d

    dixonbydesign

    08/31/2017, 6:32 PM
    I'm attempting to use the
    user
    query to get data for the currently logged in user. When my app renders on the server the user and data are present but when it renders on the client the user is
    null
    . It seems other queries are working as expected. Any ideas what my issue could be? Thanks!
    n
    d
    • 3
    • 6
  • p

    picosam

    08/31/2017, 7:03 PM
    Hello! Anything to watch out for when attempting to save data to a
    json
    field within a Schema Extension Function?
    a
    • 2
    • 74
  • d

    doug_w

    08/31/2017, 8:14 PM
    Any recommended Atom packages for GraphCool / GraphQL out there? Syntax highlighting for the
    .graphcool
    schema file would be awesome!
    a
    • 2
    • 4
  • c

    cbranch

    08/31/2017, 9:11 PM
    Hey guys, anyone have any recommendations on how I might add fragments to queries in
    graphql-request
    ?
  • c

    cbranch

    08/31/2017, 9:12 PM
    I'm trying to switch over from
    lokka
    , after realizing how dead that was and fragments are pretty much all I'm missing
  • p

    picosam

    08/31/2017, 9:24 PM
    Copy code
    Error
    CODE
    500
    MESSAGE
    Cannot read property 'projectId' of undefined
    ERROR
    Script generated an unhandled synchronous exception.
    I’m getting this when trying to test run my schema extension. I believe I may have not correctly populated
    headers
    in the EXAMPLE EVENT?
  • p

    picosam

    08/31/2017, 9:26 PM
    It seems that someone has ran into a similar error on August 9; it may be a known console bug. I guess I’ll call the mutation from the playground for now.
    a
    • 2
    • 14
  • m

    mlyons

    08/31/2017, 9:45 PM
    I got a notification email that says I haven't come back to my Graphcool account in a week, but I have been on the console and using my account these past few days.
    a
    n
    • 3
    • 5
1...326327328...637Latest