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

    emilrmoeller

    11/24/2016, 9:46 PM
    @nilan @sorenbs Thanks for creating the feature request! The check point seems to have it covered 🙂 Alright, i’ll put the feature in my backlog! Thanks guys!
    👍 3
  • s

    sdubois

    11/25/2016, 5:31 AM
    @schickling: thanks! Looks like some places use "Autho" instead of "Auth0"
  • s

    sdubois

    11/25/2016, 5:32 AM
    Ah no that's just the font...
    🙈 2
  • g

    geocine

    11/25/2016, 3:23 PM
    does anyone know why I have to do this on Ionic 2 + Angular 2 + Apollo Client on my
    tsconfig.json
    ? During
    ionic serve
    Copy code
    "lib": [
          "dom",
          "es6"
        ]
    But during
    ionic build android
    I should do this
    Copy code
    "lib": [
          "dom",
          "es5"
        ]
    And is there any work around so that I don't have to manually edit the file every time I execute the commands? If I don't change them these commands would throw error and interrupt webpack.
  • s

    schickling

    11/25/2016, 6:00 PM
    Maybe @kamil can help you out, @geocine! 🙂
  • g

    geocine

    11/25/2016, 6:15 PM
    Thank you @schickling looking forward for an answer. I understand that in the documentation this is stated
    Copy code
    TypeScript 2.0 comes with a set of predefined type declarations.
    If you’re using one of them that brings ES2015 (ES6) you should disable it, because @types/es6-shim will cause an issue with multiple types definitons.
    
    It’s easy, just replace es6, es2015 or similar options from compilerOptions.lib for es5.
    But I have to change it back when doing an
    ionic serve
  • g

    geocine

    11/26/2016, 9:41 AM
    I am trying to use the
    signinUser
    mutation it is working well. However on initial page load and I click my login button without a email and password supplied I get this error on the javascript console. Do you know what is the cause of this?
    Copy code
    error_handler.js:50 ORIGINAL EXCEPTION: this.apollo.mutate(...).toPromise is not a function
  • g

    geocine

    11/26/2016, 9:42 AM
    The second time I click , still with blank email and password, it will not throw that error.
  • g

    geocine

    11/26/2016, 9:51 AM
    Is there any login example that uses observables with error and token handling?
  • g

    geocine

    11/26/2016, 10:09 AM
    but when it works , either onfulfilled or onrejected code is not executed
  • g

    geocine

    11/26/2016, 10:10 AM
    but something is being returned
  • s

    schickling

    11/26/2016, 10:22 AM
    Hey @geocine. We provide quite a couple of different examples here: https://github.com/graphcool-examples
  • s

    schickling

    11/26/2016, 10:23 AM
    Unfortunately none with observables yet. Maybe you'd want to ask it on Stackoverflow and tag it with #graphcool? We can forward it to some angular folks!
  • e

    emilrmoeller

    11/26/2016, 1:17 PM
    hey @geocine, it’s quite complex with angular 2, i made it work really well though. The code is the first i wrote in the project, so some namings might seem a bit strange but maybe you’ll get something out of it https://gist.github.com/emolr/14c5967086434d8bf7f55858abddaedb I made a service though, today i would just had built it straight into the components so i didn’t need to many reducer states
    👍 3
  • g

    geocine

    11/26/2016, 4:20 PM
    @emilrmoeller thank you for your code. Ans also I realized I was missing this
    import 'rxjs/add/operator/toPromise';
  • g

    geocine

    11/26/2016, 4:21 PM
    @emilrmoeller do you happen to know how to resolve my issue with ionic
    es5(build) <-> es6(serve)
  • e

    emilrmoeller

    11/26/2016, 10:53 PM
    @geocine i’m not 100% sure but here’s an idea. Create an extra tsconfig.ts named
    tsconfig.ionicbuild.json
    (or something else) file where settings fit for building the ionic app
    es5(build)
    . then in package.json add a line like this
    "build": “./node_modules/.bin/tsc -p src/tsconfig.ionicbuild.json”,
    And run
    npm run build
    instead of ionic. But it sounds like something ionic would make sure to fix though
  • k

    kitze

    11/29/2016, 1:54 PM
    Hey guys 🙌
  • n

    nilan

    11/29/2016, 1:54 PM
    welcome @kitze 🙂
  • k

    kitze

    11/29/2016, 1:55 PM
    tnx!
  • k

    kitze

    11/29/2016, 2:40 PM
    I'm curious, why do the graph.cool docs suggest that the auth token should be kept in localStorage? Usually when sending an auth api call on a website it sends back a response with a header that's automatically setting a cookie with the token. Also there is usually a call for logout that will automatically log out the user on the server and send back a header that will delete the cookie automatically.
  • s

    schickling

    11/29/2016, 2:47 PM
    Good point @kitze. That's pretty much how you developed applications a couple of years ago (Rails etc). In the age of SPAs storing a auth token in local storage has emerged as a best practise.
  • k

    kitze

    11/29/2016, 2:53 PM
    Alright 👍
  • k

    kitze

    11/29/2016, 4:07 PM
    Have you previously had anyone complaining about storing emoji in a field? 😅 The emoji are shown like this in the data explorer (http://jmp.sh/JfmAOdh) and then rendered like this (http://jmp.sh/rOHQQrS) Any fix for this?
  • s

    schickling

    11/29/2016, 4:18 PM
    That's a very good point. We're already having an open issue for that: https://github.com/graphcool/console/issues/437
  • s

    schickling

    11/29/2016, 4:19 PM
    Unfortunately this is blocked by an external library we're using (https://github.com/spray/spray-json)
  • s

    schickling

    11/29/2016, 4:20 PM
    A fix is expected over the next few days: https://github.com/akka/akka-http/issues/564
  • k

    kitze

    11/29/2016, 4:21 PM
    Ah, okay
  • k

    kitze

    11/29/2016, 4:21 PM
    thanks 🙂
  • a

    ashvala

    11/29/2016, 5:31 PM
    Hey guys
1...545556...637Latest