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

    georgelovegrove

    08/17/2017, 8:58 PM
    https://www.graph.cool/forum/t/best-push-notifications-approach/654 - If anyone has any experience with push notifications and graphcool would greatly appreciate your experience
  • n

    niwat

    08/17/2017, 10:35 PM
    Type “Person”, many-to-many relation “friends” to the SAME type “Person”. If I connect John to Bob, John.friends = Bob, but Bob.friends = null. Is that the intended behavior?
    a
    • 2
    • 2
  • n

    niwat

    08/17/2017, 10:39 PM
    Was trying to only have to connect John and Bob once. I guess i have to use two different names for the relation on the same type, then merge an unify the results. something like John.friendsTo. Bob.friendsFrom …
  • z

    zaksingh

    08/18/2017, 1:42 AM
    How do I construct a mutation that creates 'n' number of a type? In my app the user can make multiple 'posts' then save them all at once. How can I handle this in one mutation? I don't want to loop through and send a individual mutation for each one
    m
    • 2
    • 8
  • z

    zaksingh

    08/18/2017, 2:05 AM
    Quick question: Why are you required to query back some data after a mutation?
  • c

    coffenbacher

    08/18/2017, 3:21 AM
    https://github.com/marmelab/aor-graphql is there anything along these lines ready for use? struggling with whether to manually build out tons of CRUD pages or try to leverage something like that. Would it be viable to fork https://github.com/graphcool/console??
    m
    • 2
    • 1
  • m

    matty

    08/18/2017, 3:34 AM
    @zaksingh because graphql clients tend to have a client-side cache that needs to be invalidated
  • m

    matty

    08/18/2017, 3:37 AM
    @nilan et al - am I right to be using https://www.graph.cool/docs/faq/graphcool-changelog-chiooo0ahn/ to follow updates?
  • m

    matty

    08/18/2017, 3:38 AM
    I don't see anything listed there for the change that enabled you to import any npm module
  • m

    matty

    08/18/2017, 4:31 AM
    argh, schema extensions don't support JSON input?
  • m

    matty

    08/18/2017, 4:31 AM
    or enums?
  • m

    matty

    08/18/2017, 4:31 AM
    both of these are listed in the graphcool docs as scalar types, and the docs also say schema extensions supports scalar types
    n
    • 2
    • 5
  • m

    matty

    08/18/2017, 4:39 AM
    nvm - I was using
    JSON
    instead of
    Json
    , the enums are still unsupported though
  • j

    justinrich

    08/18/2017, 6:01 AM
    I’m trying to upload image files to my server on graph.cool and I keep on getting this error
  • j

    justinrich

    08/18/2017, 6:01 AM
  • j

    justinrich

    08/18/2017, 6:01 AM
    https://www.graph.cool/forum/t/cors-issue-with-file-upload/655
  • m

    matty

    08/18/2017, 6:42 AM
    @justinrich are you sending with POST method?
  • m

    matty

    08/18/2017, 6:43 AM
    this is all I'm doing, and this works with no extra config:
  • m

    matty

    08/18/2017, 6:43 AM
    Copy code
    const data = new global.FormData()
        data.append('data', files[0])
        const res = await fetch(GRAPHCOOL_FILE_ENDPOINT, {
          method: 'POST',
          body: data,
        })
  • m

    matty

    08/18/2017, 6:44 AM
    @justinrich I just looked at the example you posted in the forum, I'll add a response there.. but you've set the Content-Type header to "application/json", but its not JSON you're sending in the request body
  • d

    dominic

    08/18/2017, 7:34 AM
    Hey guys. I am trying out graphcool for a personal project and liking it so far. I definitely appreciate being able to sync a graphql IDL using the CLI tool. Is it possible to manage permissions the same way?
    m
    • 2
    • 2
  • m

    matty

    08/18/2017, 7:52 AM
    guys - you're not linting the
    graphcool-cli
    and
    graphcool-lib
    projects? 😱
    n
    • 2
    • 3
  • m

    matty

    08/18/2017, 8:56 AM
    little confused by this example - https://github.com/graphcool-examples/functions/blob/master/emails-and-notifications/sendgrid-email/email.js
  • m

    matty

    08/18/2017, 8:56 AM
    const generateMail = data => new mailHelper.Mail(
  • m

    matty

    08/18/2017, 8:57 AM
    generateRequest(generateMail(data)(event.data[model].node)),
  • m

    matty

    08/18/2017, 8:57 AM
    generateMail(data) returns a new mailHelper.Mail ... which is not a function, even though it appears to be treated like one?
    a
    • 2
    • 3
  • d

    daphen

    08/18/2017, 11:00 AM
    No, I've used Apollo for Vue as well
  • d

    daphen

    08/18/2017, 11:00 AM
    @spences10
    👌 1
    👍 1
  • d

    daphen

    08/18/2017, 11:09 AM
    Oh, I think there's a regular JS one?
  • d

    daphen

    08/18/2017, 11:15 AM
    I might be wrong, looking at the docs.
1...311312313...637Latest