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

    christrotter

    10/24/2016, 6:54 PM
    i think i may go with react then, looks like the community is really getting behind it
  • s

    sorenbs

    10/24/2016, 6:55 PM
    That’s a fair assessment I would say. Also a big plus that the react community has a stronger uptake of GraphQL, so that will be helpful as well.
    πŸ‘ 1
  • s

    sorenbs

    10/24/2016, 6:56 PM
    I know Dan just updated the react docs, so a good time to jump onboard πŸ™‚
  • p

    pedro.gutierrez

    10/25/2016, 12:21 AM
    @christrotter Angular 1 and 2 are very different (the html language is kept, but is different). Angular 1 is very inefficient with the scope evaluation, DOM generation, data bindings and events. With Angular 1 the scope between components worked bad, the data binding was limited... Angular 2 is really efficient. It uses Zone.js for detect the changes and the events. It compile de view and transform it to evaluated JavaScript. The mix with Zone.js and the compilation to JS of the template and the components communications solves the initial problems of Angular 1. And... It's a more complex than Angular 1, but, when you have good knowledge about Angular 2, is really easy to program with it and is really easy to do scalable apps. I hope you have understood my explanation. I should improve my English.
    πŸ‘ 2
  • r

    robotofthefuture

    10/25/2016, 6:27 PM
    Hi all. Has anyone had any luck using the react apollo client with the filter option?
  • s

    schickling

    10/25/2016, 6:28 PM
    Hey @robotofthefuture. Did you got the query (including the filter) to work in the playground?
  • r

    robotofthefuture

    10/25/2016, 6:28 PM
    It's probably me, but the request is dropping variables if they're in the filter argument.
  • s

    sashko

    10/25/2016, 6:29 PM
    @robotofthefuture perhaps try apollo-client@next - 0.5 is fixing some bugs of that nature
  • r

    robotofthefuture

    10/25/2016, 6:30 PM
    Definately working in the playground, something's happening in the graphql hoc. The GQL document shows the variable, but it seems to be dropped. I'll give that a try @sashko . Thanks!
  • r

    robotofthefuture

    10/25/2016, 6:30 PM
    Sorry, dropped when the HOC generates the query.
  • r

    robotofthefuture

    10/25/2016, 6:34 PM
    That seems to do the trick. Thanks again @sashko
  • s

    sashko

    10/25/2016, 6:34 PM
    yeah, we used to do some query manipulation but we stopped :]
  • r

    robotofthefuture

    10/25/2016, 6:35 PM
    Gotcha! Thanks for the great work.
  • d

    dydycloud

    10/25/2016, 10:26 PM
    hi everyone can wait to try graph.cool
  • s

    schickling

    10/26/2016, 3:08 PM
    Hey @dydycloud! I've just activated the newest batch of the early access program. You should have gotten an invite by now!
  • c

    christrotter

    10/26/2016, 11:31 PM
    where are bugs and UX improvements typically put your github? into the feature requests repo?
  • n

    nilan

    10/26/2016, 11:40 PM
    no, to the github issues of the console (previously known as dashboard): www.github.com/console/issues
    πŸ‘ 1
  • s

    schickling

    10/27/2016, 2:23 PM
    Hey everybody <!here|@here>! We have two updates: 1) We renamed the Dashboard to Console (and rolled out many new enhancements). You can access it here: https://console.graph.cool 2) You can now login with Github or Google. In case you want to login "the old way" please reset your password. (You should have already received an email with more details.) Please let me know if you need any help! πŸ₯
    πŸŽ‰ 4
    ❀️ 1
    πŸ‘πŸΎ 2
    🦜 3
    πŸŽ… 1
  • c

    christrotter

    10/27/2016, 4:10 PM
    Anyone familiar with react? Why do we have to bind methods to react components within constructor, when they are part of the prototype? Shouldn't prototype be using this of the newly instantiated object without explicit binding?
  • t

    tim2

    10/27/2016, 5:20 PM
    @christrotter good question! It is due to the nature of js/js classes. Consider this snippet https://jsfiddle.net/3jm5w60j/1/ (open the console to see the result). You only need this when the methods are called from another scope. In the example you also see, that
    b
    is defined differently then
    a
    . The way
    b
    is defined is actually the way we define the most methods in our console react project. Then you don't need the
    this.method = this.method.bind(this)
    in the constructor anymore.
    😘 1
  • r

    rene

    10/27/2016, 7:16 PM
    @christrotter in case you use ES6 you just de
    ::this.method
    and that’s the same as
    this.method.bind(this)
    πŸ‘ 1
  • c

    christrotter

    10/27/2016, 10:27 PM
    @tim2 @rene thank you both.
  • s

    scripttease

    10/28/2016, 7:52 AM
    Hi, I'm just a beginner but I'm going to be on an open source project at webdev.camp (code bootcamp) that I think this would be great for! How do I try it? Thanks!
  • s

    schickling

    10/28/2016, 8:58 AM
    Hi @scripttease. You can just signup here and get started: https://console.graph.cool/signup
  • a

    alexedev

    10/28/2016, 9:42 AM
    hi everyone! @nilan thanks for inviting me:)
    πŸ‘ 1
  • s

    sorenbs

    10/28/2016, 9:47 AM
    Welcome Alex πŸ™‚
    πŸ™‚ 1
  • l

    luke

    10/28/2016, 10:07 AM
    hey - anyone using
    react-relay-network-layer
    to connect to their graphql server? https://github.com/nodkz/react-relay-network-layer/
  • l

    luke

    10/28/2016, 10:07 AM
    in particular the auth middleware?
  • s

    schickling

    10/28/2016, 10:08 AM
    Oh that looks interesting, no we haven't used it yet. Maybe somebody else? πŸ™‚
  • l

    luke

    10/28/2016, 10:33 AM
    Yeah its useful as it handles setting Authorization headers on each request and refreshing token when
    401
    is received
1...343536...637Latest