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

    jcamposv

    03/10/2017, 11:38 PM
    Hello I have this error
  • j

    jcamposv

    03/10/2017, 11:38 PM
    Request ID: cj04glctt3xml0192bpmqt2f7
  • j

    jcamposv

    03/10/2017, 11:39 PM
    I try to pass these
    n
    • 2
    • 16
  • j

    jcamposv

    03/10/2017, 11:39 PM
    mutation { updateVideo(id : "cj03z77ysjlld0143gzxuuuy3", events :["{'position':'3%','time':'20','iconType':'Slide','icon':'fa fa-list-alt'}"]){ id events url } }
  • j

    jcamposv

    03/10/2017, 11:40 PM
    https://screencast.com/t/2vm5uuGsVe
  • j

    jcamposv

    03/10/2017, 11:40 PM
    itยดs when I send the events
  • j

    jcamposv

    03/10/2017, 11:41 PM
    if I just add events : [] works fine
  • a

    artyom

    03/11/2017, 3:47 AM
    @brandonmp @if0109 welcome to our slack! ๐Ÿ‘‹
  • m

    martin

    03/11/2017, 4:45 AM
    A little self-promotion hereโ€”I hope thatโ€™s ok. Will soon be launching the
    Life Purpose App
    built on the
    graph.cool
    platform. Truly couldnโ€™t have come this far without the amazing people working at graph.cool and the technology they built (and I tried several prior to finding graphcool) Stay tuned. https://www.lifepurposeapp.com/
    ๐Ÿ‘Œ 6
    โค๏ธ 2
    graphcool 4
    ๐ŸŽ‰ 4
    a
    • 2
    • 1
  • y

    yordi-twinski

    03/11/2017, 12:10 PM
    Hey everyone! Does anyone know the best way to fetch a list of models that are linked to a User but only the logged-in User (via auth/token) can fetch his own models. So a current-user-check at the Graphql side of things..?
    n
    • 2
    • 3
  • a

    artyom

    03/11/2017, 12:21 PM
    @madebydouglas @loelsonk @elw @stephen.sugden hey, everyone! welcome to our slack ๐Ÿ™Œ graphcool
  • a

    artyom

    03/11/2017, 12:21 PM
    a special hello to my friend @stephen.sugden here! ๐Ÿ™‚
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ™‚ 1
  • s

    stephen.sugden

    03/11/2017, 3:22 PM
    is there any documentation/examples of using authentication & subscriptions together? So far I can only access data in subscriptions if it can be "viewed by everyone"
    t
    n
    • 3
    • 6
  • a

    artyom

    03/11/2017, 6:11 PM
    hey, @chrisfowler @nikhilcoolstuff ๐Ÿ‘‹ graphcool
  • l

    lpil

    03/11/2017, 7:04 PM
    Hello! Is it possible to export and import my graphcool configuration to a text file? Iโ€™d love to be able to version and code review changes to the graphcool setup. It would also be useful to verifying that staging and production are in sync.
    s
    • 2
    • 5
  • d

    drk

    03/11/2017, 8:02 PM
    is it possible to opt in for beta features?
    s
    • 2
    • 2
  • d

    drk

    03/11/2017, 8:42 PM
    anyone have issues using apollo on server side and failing to connect to graph.cool?
  • d

    drk

    03/11/2017, 8:42 PM
    request is chill on the client, but it seems fail on a handshake when rendering on server
  • d

    drk

    03/11/2017, 8:43 PM
    Copy code
    import ApolloClient, { createNetworkInterface } from 'apollo-client'
    
    let apolloClient = null
    
    export const initClient = (opts) => {
      if (!process.browser) return createClient(opts)
    
      if (!apolloClient) {
        apolloClient = createClient(opts)
      }
    
      return apolloClient
    }
    
    const createClient = (opts) => {
      return new ApolloClient({
        ssrMode: !process.browser,
        dataIdFromObject: result => result.id || null,
        networkInterface: createGraphCoolNetworkInterface(opts)
      })
    }
    
    const createGraphCoolNetworkInterface = (opts) => {
      const networkInterface = createNetworkInterface({
        uri: '<https://api.graph.cool/simple/v1/cj008phtn40om0134wa1qgayz>',
        opts: {
          ...opts,
          credentials: 'same-origin'
        }
      })
    
      if (process.browser) {
        networkInterface.use([{
          applyMiddleware (req, next) {
            if (!req.options.headers) {
              req.options.headers = {}
            }
    
            if (localStorage.getItem('auth0IdToken')) {
              req.options.headers.authorization = (
                `Bearer ${localStorage.getItem('auth0IdToken')}`
              )
            }
    
            next()
          }
        }])
      }
    
      return networkInterface
    }
    ๐Ÿ™Œ 1
    ๐Ÿ‘ 1
    s
    • 2
    • 2
  • d

    drk

    03/11/2017, 8:45 PM
    Copy code
    request to <https://api.graph.cool/simple/v1/cj008phtn40om0134wa1qgayz> failed, reason: write EPROTO 140736740590528:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:769:\n
  • j

    joao.santos

    03/12/2017, 8:27 AM
    Good morning guys, just to tell you all that graph.cool is amazing for noobs like me, and i believe that also for pros. But the help in this slack channel is even better, thx to all the people that helped me understand things, i have an app for the first time working, it feels amazing. THANK YOU.
    ๐Ÿฆœ 6
    ๐Ÿค“ 1
    ๐ŸŽ‰ 2
    ๐Ÿ™ 1
    ๐Ÿผ 1
    graphcool 8
    ๐Ÿš€ 3
    graphql 1
    s
    a
    • 3
    • 9
  • a

    afgh

    03/12/2017, 9:20 AM
    Any guides on testing code using Apollo? Is this the best way? http://stackoverflow.com/questions/41103597/how-make-unit-test-with-react-apollo-component
    l
    • 2
    • 2
  • a

    artyom

    03/12/2017, 12:09 PM
    hi @ldittmar have fun hacking with graphcool !
  • s

    steida

    03/12/2017, 6:12 PM
    Is it possible to leverage flowtype with GraphQL somehow?
  • s

    schickling

    03/12/2017, 6:39 PM
    Hey @steida. Have you checked out this tool? https://github.com/apollographql/apollo-codegen
    ๐Ÿ˜ฒ 1
  • a

    artyom

    03/12/2017, 7:38 PM
    @nikitindiz @yszk0123 hi there! join the graphcool club ๐Ÿ™‚
  • j

    joao.santos

    03/12/2017, 8:16 PM
    Hey guys in ( react-apollo-file-upload-example ) i have made a relation between post and file. Every time i upload, a post and a file are created, but when i delete it only deletes the post, the image stays there. Any advice?
    n
    • 2
    • 1
  • j

    joao.santos

    03/12/2017, 8:17 PM
    i think my deletePost mutation should be diferen but i cant connect with the id of the file to delete const deleteMutation = gql` mutation deletePost($id: ID!) { deletePost(id: $id) { id } } `
    n
    s
    • 3
    • 28
  • m

    monkeybonkey

    03/12/2017, 11:06 PM
    to support geosearch with the algolia integration - do I have to name my location field _geoloc like how algolia wants it, or can I alias/transform the name in the integration query setting from graph.cool?
    n
    s
    • 3
    • 17
  • p

    pkunwar

    03/13/2017, 7:18 AM
    what is the difference between a Class and a Constructor function???
1...121122123...637Latest