What you did not know about type extension in Hot Chocolate.

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ย. 2024

ความคิดเห็น • 16

  • @WarrenBrown-c7i
    @WarrenBrown-c7i ปีที่แล้ว

    Thank you! This allowed me to extend the Mutation Conventions Error types so I can add additional fields with resolvers to the domain exceptions. A fully Graphable Error with dataloaders! This is great for front-end to get the data needed for display in error messages that are sometimes in related objects. Awesome!

  • @rockyxyzable
    @rockyxyzable 2 ปีที่แล้ว

    You make things really easy to understand. Love the way you explain it :)

  • @joslatbarcelona
    @joslatbarcelona 2 ปีที่แล้ว +1

    Great video and content, I really like how you can mix the different "flavors" - find it curious that the one that received most "love" is the Annotation based ;) - I really like it the most too!

  • @dandoescode
    @dandoescode 2 ปีที่แล้ว

    Great Video Michael. Thanks!

  • @oleksiy4618
    @oleksiy4618 10 หลายเดือนก่อน

    Is it possible to register an extension conditionally, e.g. depending on environment?

  • @vickramanthekkanravi4989
    @vickramanthekkanravi4989 2 ปีที่แล้ว

    is it possible to apply sort/filter using the extended fields where the value for the extended fields comes from different service

  • @Wfmike
    @Wfmike 2 ปีที่แล้ว

    How does extended properties work with EntityFramework Projection? I tried to use this to create a "computed column" but kept getting nulls unless the relevant navigation properties are included in the select, which defeats the purpose of extending the object.
    BTW looks like AddExtendingTypesTypes has been renamed to AddCoreTypes

  • @MindRabbits
    @MindRabbits 11 หลายเดือนก่อน

    what to do if extended types allows only 2048 records to parse?

  • @Nikosiim
    @Nikosiim ปีที่แล้ว

    I'm a bit confused because "Object Types" and "Extending Types" seem very similar in functionality.

  • @jsnmad
    @jsnmad 2 ปีที่แล้ว

    Whatever happens to just using inheritance to extend?

    • @ChilliCream
      @ChilliCream  2 ปีที่แล้ว

      Type Extensions allow you to move the GraphQL specific code to a complete separate class. This way you can completely separate you business objects from the GraphQL specific stuff.
      You can also use the fluent configuration API for such things or write resolver classes in combination with schema-first.
      Its anther tool in your toolbox. There are many ways to build your graph.

  • @andreaskarz
    @andreaskarz 2 ปีที่แล้ว

    Ganz cool 🤩 Aber das mit der Node-Annotation verstehe ich nicht ganz :-(

    • @ChilliCream
      @ChilliCream  2 ปีที่แล้ว

      Thank you Andreas 🚀

  • @xoreeee
    @xoreeee ปีที่แล้ว

    Is this name still valid : AddExtendingTypesTypes ?

    • @ChilliCream
      @ChilliCream  ปีที่แล้ว

      This is a source generated method ... so it depends on your code.