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

    user

    03/28/2017, 4:09 PM
    @hvillain commented on @hvillainโ€™s file https://prisma.slack.com/files/U4KES2J7P/F4Q5393UG/no_body_returned_from_webtask_request.txt: onData works like a charm. I submitted a PR. Thanks! ๐Ÿ˜‰
    No_body_returned_from_Webtask_request.txt
  • u

    user

    03/28/2017, 4:11 PM
    @nilan commented on @hvillainโ€™s file https://prisma.slack.com/files/U4KES2J7P/F4Q5393UG/no_body_returned_from_webtask_request.txt: thanks Hugo that's great ๐ŸŽ‰
    No_body_returned_from_Webtask_request.txt
  • d

    dataknut

    03/28/2017, 4:14 PM
    Here's one that @nilan helped me with yesterday. Also, uses webtask secret for authentication.
    webtask_io_example.js
  • n

    nilan

    03/28/2017, 4:14 PM
    right, that's with
    fetch
    ! Thanks @dataknut and @hvillain haha
    ๐Ÿ™Œ 1
  • u

    user

    03/28/2017, 4:15 PM
    @dataknut commented on @dataknutโ€™s file https://prisma.slack.com/files/U4PD6N1U0/F4RH33QK0/webtask_io_example.js: this one takes a
    /slashcommand word;definition
    from an outgoing webhook in Slack and inserts it to the graph.cool database
    webtask_io_example.js
  • u

    user

    03/28/2017, 4:16 PM
    @nilan commented on @dataknutโ€™s file https://prisma.slack.com/files/U4PD6N1U0/F4RH33QK0/webtask_io_example.js: super cool ๐Ÿ™‚
    webtask_io_example.js
  • h

    hvillain

    03/28/2017, 4:17 PM
    I notice you don't need to insert variables in your request body as long as you've defined them earlier. Nice one!
  • n

    nilan

    03/28/2017, 4:17 PM
    hmm
  • n

    nilan

    03/28/2017, 4:17 PM
    what do you mean?
  • h

    hvillain

    03/28/2017, 4:19 PM
    His query uses definition and word variables but he doesn't insert them into the body of his request. I thought you would have to pass the variables somehow, like this : "body: JSON.stringify({ query, variables : {definition, word} })"
  • n

    nilan

    03/28/2017, 4:19 PM
    you still have to pass variables like that
  • n

    nilan

    03/28/2017, 4:20 PM
    in his script, he inlines the strings into the query
  • n

    nilan

    03/28/2017, 4:20 PM
    Copy code
    const query = `mutation {
        createEntries(definition: "${definition}" word: "${word}") {
          id
          word
          definition
        }
      }`
  • n

    nilan

    03/28/2017, 4:20 PM
    no variables on the GraphQL layer here
  • d

    dataknut

    03/28/2017, 4:20 PM
    (backticks in ES6 are the best)
    ๐Ÿ’ฏ 3
  • d

    dataknut

    03/28/2017, 4:21 PM
    but yeah, I made the code a bit verbose so it's easier to read
  • h

    hvillain

    03/28/2017, 4:25 PM
    aaaw, right !
  • a

    artyom

    03/28/2017, 5:57 PM
    hello to the recent arrivals to the graphcool slack: @dviramontes @kassens @creyes @dulinim @ragupathi @xavcz @harshana @gstephens ๐Ÿ–– ๐ŸŽ‰
    ๐Ÿ‘‹ 1
  • k

    kassens

    03/28/2017, 6:29 PM
    Hi, I'm looking into creating a
    create-relay-app
    similar to
    create-react-app
    to get people started with using Relay. Integrating with
    graphql-up
    seems like it might fit in perfectly for the server side.
    ๐Ÿ’ฏ 2
    n
    • 2
    • 13
  • j

    jason

    03/28/2017, 8:23 PM
    Is there a way to define data validations on a field beyond non-null and unique?
    n
    • 2
    • 5
  • j

    jason

    03/28/2017, 8:28 PM
    For examples: min/max string length, uniqueness scoped to another field value
  • m

    mpalamar

    03/28/2017, 10:09 PM
    hey, was wondering if there was a way to hardcode in values for variables in the playground? could've sworn i did it once before but i can't remember now
    n
    • 2
    • 9
  • a

    arifads

    03/29/2017, 4:39 AM
    Hi! Sorry to ask this here. But anyone know if Auth0 let me scope the Gmail auth to only accept the emails from my company? Currently we use GApps and let everyone login with a Gmail account. But I block the access if they logged in with anything different than @<insert_company_domain>.com
  • a

    arifads

    03/29/2017, 4:40 AM
    Google Auth lets me use only one domain in the restriction I think, but we have two.
  • s

    sorenbs

    03/29/2017, 6:10 AM
    Hi @arifads have you looked into using Auth0 rules? Iโ€™m pretty sure it can be done, but donโ€™t know the exact syntax. Auth0 support can probably help you with that ๐Ÿ™‚
  • a

    artyom

    03/29/2017, 8:37 AM
    hi @canuzunoglu ! ๐ŸŽ‰
  • c

    canuzunoglu

    03/29/2017, 8:50 AM
    hi everyone!
    ๐Ÿ‘‹ 2
  • a

    artyom

    03/29/2017, 9:20 AM
    ๐Ÿ–– @sven.seiler welcome to graphcool
  • s

    sven.seiler

    03/29/2017, 9:21 AM
    Hey
    ๐Ÿ‘‹ 1
  • h

    hellojere

    03/29/2017, 9:49 AM
    Working with forms here, and stuck with a
    null
    value issue. GraphQL fives an error with these when trying to insert - whatโ€™s the right approach here? Canโ€™t I really update with null values?
    n
    • 2
    • 16
1...136137138...637Latest