The Do’s and Don’ts for your schema and GraphQL operations

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • Learn GraphQL with Apollo Odyssey, our hands-on training and tutorial course platform - odyssey.apollographql.com/
    Learn from our Apollo Docs - www.apollographql.com/docs/
    What’s the easiest way to navigate your schema and query your graph? Try Apollo Studio at www.apollographql.com/studio/...
    Video Details: Learn best practices for GraphQL schema and client operations from someone who works with enterprises every day to optimize their GraphQL infrastructure - Michael Watson, an Apollo Customer Success Engineer.
    Start with common do's and don'ts for building a schema that will help clients more easily consume your graph. Then look at common pitfalls Michael sees in GraphQL operations and how some small changes can bring a lot of clarity to a data graph. Micheal also covers Apollo tooling, like Graph Manager, to enable these best practices.
    Resources:
    Checkout the Apollo docs - www.apollographql.com/docs/
    Explore the schema docs - www.apollographql.com/docs/ap...
    Explore the GraphQL FAQs - www.apollographql.com/docs/re...
  • Věda a technologie

Komentáře • 13

  • @MrJaxolotl
    @MrJaxolotl Před 4 lety

    And the rabbit hole never ends!!!! Thanks Michael for turning on the lights for a lot more rooms to explore!!!!

  • @r-gart
    @r-gart Před 3 lety +4

    As a software developer this guy is a great salesman (for the tools he wants people to use). Maybe he isn't doing in purpose, but he would do great in sales 😄
    "Be a champ for my project"
    "Do not use basic software, use our services"

    • @TheKhalilStemmler
      @TheKhalilStemmler Před 3 lety +1

      Watson's the best

    • @MySonicDragon
      @MySonicDragon Před 2 lety

      This was entirely a marketing presentation. I was hoping to learn something about the ins and outs of schema design but it really comes down to "hey look at what our tooling and platform can give you".

  • @patrickartounian4487
    @patrickartounian4487 Před 4 lety +1

    Could we please get a code example for filtering criteria as variables for the graph?

  • @dianartimus
    @dianartimus Před 4 lety

    You go Michael Watson!

  • @AshtonMotana
    @AshtonMotana Před 2 lety

    I'm trying to figure out how to sort by asc in my resolver, on a subdocument
    Kitchen Schema, { itemCategory } and { itemName }, can sort by directly querying the Kitchen Schema, but when quiring the context user, (me) and the subdocument field kitchen ref: 'Kitchen'. the itemCategory and itemName are not sorting at all.

  • @patrickartounian4487
    @patrickartounian4487 Před 4 lety

    So it seems GraphQL should cater to the client(s).
    One specific thing I have in mind, in storing monetary data. We believe it would be best to store it in "cents" as an integer ie 3500 = $35, 3555 = $35.55.
    With that in mind, should GraphQL input/output monetary values as Int or a Float as that is what the client would be using?

    • @scottrobbins3341
      @scottrobbins3341 Před 4 lety +1

      I don't work at Apollo, but I think you should use integers. While the graph can make things easier for clients, it shouldn't make things ambiguous or wrong.

    • @juancarlosqr
      @juancarlosqr Před 4 lety +2

      Hey, use integers. Is the way stripe does it and is really great

    • @johandejager3692
      @johandejager3692 Před 4 lety

      We input as integer, and output as a type called Money. This Money type contains several fields: currency, formatted amount (which is a string like "€5.00") and lastly: amount (which is the original input as an integer).

    • @dagadbm
      @dagadbm Před 3 lety

      basically its the same as monogdb lol.. cater the api/db to the calls

  • @KevinOsterkilde
    @KevinOsterkilde Před 4 lety

    The one single downvote is from a REST sympathiser.
    Jokes aside, good talk.