Lee Byron - Exploring GraphQL at react-europe 2015

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии •

  • @ralfrolfen5504
    @ralfrolfen5504 Год назад +2

    This is the first explanation I've seen, that properly highlights the strengths of GraphQL.
    Any other blog or video I've seen (even recent ones), seem like they are just fanboys, repeating what somewhat else said and actually have no idea what is going on.
    Thank you for this video!

  • @arisweedler4703
    @arisweedler4703 3 года назад

    Best piece of media I've ever seen to help me understand graphQL

  • @sjkba
    @sjkba 9 лет назад +14

    Very well presented talk and distinctive outfit. Love it!

  • @JoeCritchley
    @JoeCritchley 9 лет назад +3

    Fantastic explanation. Also great to see the React Europe vids coming in.

  • @sriramvelamur
    @sriramvelamur 9 лет назад

    Excellent work there, particularly the wonderfully abstracted way to nest queries.

  • @jasonhamm8809
    @jasonhamm8809 9 лет назад

    Is there any example of the library hooked up to an actual db? I briefly looked through graphql repo, but could only find the graphql piece.

  • @guihe7095
    @guihe7095 9 лет назад +1

    At 22:22 there is mention of "design and build graphql server" will we be seeing this?

    • @agonb3156
      @agonb3156 9 лет назад +2

      Gui He /watch?v=gY48GW87Feo

  • @joeywood
    @joeywood 9 лет назад

    Some similar goals to OData, with query projection and graph/schema definition and traversal.

  • @michaelstaub22
    @michaelstaub22 9 лет назад +1

    Great presentation!

  • @ammarasana3822
    @ammarasana3822 5 лет назад

    I liked it. Good one :)

  • @ajgubi19
    @ajgubi19 9 лет назад +1

    Individual queries for each field? Say whaaaaa...t?

    • @sharon0x1
      @sharon0x1 8 лет назад +1

      +Waliur Rahman Not exactly. Field functions get the thing passed that they are fields on. In the example at around 21:24, there is only one DB query for one user object with the given ID. Once that object is returned, GraphQL passes it to each field functions to do whatever you want with it: return property, do 'join', etc.

  • @bzzzvzzze
    @bzzzvzzze 9 лет назад

    amazing

  • @cphoover11
    @cphoover11 9 лет назад

    so when you define your data fetching via a function for each field is the idea that you are sending a query for each field?? this seems totally wasteful. It would make more sense to have an adapter of some sort for your data store of choice that composes a query to fetch all necessary fields. Using bandwidth in terms of overfetching is bad, but with a query for each field you are exponentially increasing network i/o... Maybe I'm confused

    • @pushrax
      @pushrax 9 лет назад

      Charlie Hoover the function doesn't have to send the query immediately. See github.com/graphql/graphql-js/issues/26

    • @LeeByronW
      @LeeByronW 9 лет назад

      Charlie Hoover we definitely do not recommend doing some kind of dispatch per every field. Its expected that some fields will result in a dispatch (Promise, in JS) and others will be much cheaper simpler functions.

    • @Spiun666
      @Spiun666 9 лет назад +1

      Lee Byron even better, with promises the persistence layer (or repository) can enqueue requests for certain things (e.g. for every event by ID) then only send a single query for all of them later (before serialization? at the next tick? - whatever seems less hacky)

    • @LeeByronW
      @LeeByronW 8 лет назад +1

      +Spiun666 Bingo! github.com/facebook/dataloader is an implementation of that exact idea.

  • @kuchumovn
    @kuchumovn 9 лет назад

    good one

  • @me-timeline
    @me-timeline 8 лет назад

    duh native app to embed a web page what a dumb idea