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

    visualbbasic

    06/16/2017, 6:37 AM
    cheers
  • q

    qsys

    06/16/2017, 12:55 PM
    legal issue... In Europe, we're stuck with GDPR (http://www.eugdpr.org/) - it's about privacy and data protection. It should be implemented in all companies by May next year. So, here's the thing: is graphcool aware of this directive/regulation? Will graphcool be GDPR-compliant? - This will be a deal breaker for EU companies, since there are quite some fines for non-compliant companies and here's my worry, as an example: if I store data of EU citizens (or data about people that reside mainly used in the EU), I, as a controller, am responsible for many things. But in the new regulation, also the processor (= the hosting service, i.e. graphcool) must also comply the rules. The main ones may be: the data should be in the EU (physically, servers based in the EU) and there are some rules about how to secure them and how security breaches are handled.
    👍🏽 2
  • t

    tomhut

    06/16/2017, 12:57 PM
    @qsys Graphcool are EU based so I suspect they will
  • q

    qsys

    06/16/2017, 12:57 PM
    oh... are they? nice 😛
  • t

    tomhut

    06/16/2017, 12:58 PM
    Yeah, Berlin I think (they can correct me if I'm wrong!)
    ✅ 1
  • q

    qsys

    06/16/2017, 12:59 PM
    cool... why do I assume that most of the service companies are in the US 😛?
  • t

    tomhut

    06/16/2017, 1:01 PM
    Because that's where all the VC is 😛
    😆 2
  • s

    sorenbs

    06/16/2017, 1:16 PM
    Thanks for bringing this up @qsys 🙂 Let me just clarify a few things. Most importantly, Graphcool will comply with the new GDPR regulation. We currently have 3 data regions - one in EU, and two regions currently in beta (US and Japan.) You are in full control over in what region your data is stored and processed. As you mention there are other aspects to the new regulation, and as we approach May 2018 we will provide a detailed guide to how you can use Graphcool in a compliant way. If you happen to be in Berlin, come say hi at the next meetup https://www.meetup.com/graphql-berlin/
    👍🏻 2
  • a

    agartha

    06/16/2017, 1:31 PM
    At least we now know that the Files API will undergo some changes before May 2018 🙂 No more 'you can get my files if you know the secret' under GDPR
  • a

    agartha

    06/16/2017, 1:33 PM
    And about the meetup, too bad I didn't know sooner...
  • s

    sorenbs

    06/16/2017, 2:32 PM
    Kim - the meetup is a regular thing, so we should definitely make it happen in the future. Where are you based?
    a
    • 2
    • 1
  • s

    Slackbot

    06/16/2017, 4:22 PM
    This message was deleted.
    m
    d
    • 3
    • 4
  • c

    ckelley

    06/16/2017, 4:54 PM
    Curious - in the
    createUser
    mutation, why are both the
    email
    and
    password
    nested inside another
    email
    object? https://www.graph.cool/docs/reference/simple-api/user-authentication-eixu9osueb/
    a
    n
    • 3
    • 6
  • b

    be4r

    06/16/2017, 5:19 PM
    im following this guide to setting up Auth0: https://www.graph.cool/docs/tutorials/react-apollo-auth0-pheiph4ooj/#1.1-creating-the-project they use this code
    Copy code
    query userQuery {
        user {
          id
        }
      }
    wouldnt this query just return a list of userIds?
    a
    • 2
    • 22
  • d

    derbingle

    06/16/2017, 5:26 PM
    Is there a way/module to generate dummy graphcool ids? Just throwing together mock data for design purposes in React Native. I know it doesn’t really matter, but for my own mental understanding/OCD I want the ids to look like the real thing. 😜
    n
    a
    • 3
    • 3
  • j

    jlc467

    06/16/2017, 7:00 PM
    How do I handle nested create mutations when I don't know the id of the nested node? E.g. creating a post, which has a user relationship and all I know is the user's email, not the id.
    Copy code
    mutation {
        createPost(
          postText: "awesome post"
          userId: getUserId('<mailto:email@gmail.com|email@gmail.com>')
        )
      }
    a
    n
    • 3
    • 4
  • m

    martin

    06/16/2017, 7:36 PM
    Instead of logging a response, my one server-side subscription function (“when a file is uploaded, upload it to cloudinary, an image hosting provider”) appears to be logging:
    Copy code
    "returnValue":{"rawResponse":{}}}
    Might anyone know why? Code:
    Copy code
    const cloudinary = require('cloudinary@1.2.1')
    
    module.exports = function (event) {
      cloudinary.config({ 
        cloud_name: '___CLOUD_NAME___', 
        api_key: '___API_KEY___, 
        api_secret: '___API_SECRET___' 
      })
      console.log('Received event')
      cloudinary.uploader.upload(event.data.UserAvatar.node.file.url, (result) => {
        console.log(result)
      })
    }
    Referring to
    console.log(result)
    at end.
    cloudinary
    receives images alright. But I don’t seem to be receiving a response. And inserting
    return result
    also doesn’t appear to work.
    n
    • 2
    • 16
  • c

    ckelley

    06/16/2017, 8:54 PM
    Having some trouble with
    TRANSFORM_REQUEST
    function. I let the client to choose an
    interval
    (in days), then on the server I take that interval and add that many days to the current date. I'm getting an internal server error response on Apollo client. It looks like the
    interval
    property is being converted from Int -> String, but I'm not doing that and manually adding a parseInt() before the response doesn't help either. Any ideas?
    Untitled.js
  • l

    lastmjs

    06/16/2017, 8:56 PM
    Are subscriptions down for the simple API?
    Copy code
    WebSocket connection to '<wss://subscriptions.graph.cool/v1/cj36de9q4dem00134bhkwm44r>' failed: Connection closed before receiving a handshake response
    n
    • 2
    • 18
  • u

    user

    06/16/2017, 9:02 PM
    @ckelley commented on @ckelley’s file https://prisma.slack.com/files/U5KKUT0J0/F5UK0SQV7/Untitled.js: When running a test in the function: Event:
    Copy code
    {
      "data": {
        "createdAt": "2017-06-16T20:55:24.330Z",
        "id": "cj40c2lyi00003e64pd2d87dc",
        "interval": 5,
        "type": "DEFAULT",
        "updatedAt": "2017-06-16T20:55:24.330Z"
      },
      "context": {
        "headers": {}
      }
    }
    Return value:
    Copy code
    {
      "createdAt": "2017-06-16T20:55:24.330Z",
      "id": "cj40c2lyi00003e64pd2d87dc",
      "interval": 5,
      "type": "DEFAULT",
      "updatedAt": "2017-06-16T20:55:24.330Z",
      "referenceDate": "2017-06-16T21:00:28.030Z",
      "notifyDate": "2017-06-21T21:00:28.030Z"
    }
    Untitled.js
  • n

    nilan

    06/16/2017, 9:47 PM
    Hey @ckelley, it looks like you're encountering this bug: https://github.com/graphcool/api-bugs/issues/111
  • a

    abers

    06/17/2017, 12:40 AM
    I keep getting an internal server error
  • a

    abers

    06/17/2017, 12:41 AM
    after adding a mutation to a DateTime field
  • a

    abers

    06/17/2017, 12:41 AM
    request id cj40k32ab6ofr0122rj82a7sh
    n
    • 2
    • 1
  • m

    mike.johnson

    06/17/2017, 3:19 AM
    tinkering with the react-apollo-instagram app, it appears to run really poorly, I get the "Loading from ()" on every click for 1-2 seconds each, even after I've visited all pages. That doesn't seem right?
    n
    • 2
    • 19
  • r

    rkrk

    06/17/2017, 9:18 AM
    @nikolasburk Fantastic post re: Relay Modern! To follow up, I'm just wondering, how would you implement server-side rendering. Is this a problem that's even been figured out yet? I've found information here re: store re/de-hydration from links here (https://github.com/facebook/relay/issues/1881) but I'm wondering whether you have any more insight on how to achieve SSR in modern?
  • v

    visualbbasic

    06/17/2017, 10:01 AM
    Does anyone know how to implement viewer in Graphene + Django ?
  • v

    visualbbasic

    06/17/2017, 10:03 AM
    Copy code
    class Viewer(graphene.ObjectType):
        yo= relay.Node.Field(YoNode)
        all_yos= relay.ConnectionField(YoNode)
    
        @graphene.resolve_only_args
        def resolve_all_yos(self):
            return models.Yo.objects.all()
    
    
    class Query(graphene.ObjectType):
        viewer = graphene.Field(lambda: Query)
        node = Node.Field()
    
        debug = graphene.Field(DjangoDebug, name='__debug')
  • v

    visualbbasic

    06/17/2017, 10:04 AM
    that doesn't work
  • v

    visualbbasic

    06/17/2017, 10:04 AM
    It returns no results
1...232233234...637Latest