Moving beyond REST: GraphQL and Java & Spring by Pratik Patel @ Spring I/O 2019

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

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

  • @tomasma4896
    @tomasma4896 5 лет назад +6

    Rly nice, thank you for this presentation. Link to your demo would be helpful. Thanks!

  • @stalepalemale
    @stalepalemale 4 года назад +2

    Would have been useful to see how the Java spring boot application was created, did you use Initializr for example? what dependancies did you start with, etc.

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

    is there any example where filters are passed from the client and GraphQL responds with filtered data?

  • @suniraju5736
    @suniraju5736 4 года назад

    Can you please share the link to github for the demo apps?

  • @bregtjehamer672
    @bregtjehamer672 4 года назад

    how did you implement the 'first:1' in the filmConnection ? (11.00 min)

  • @swatipatil7862
    @swatipatil7862 5 лет назад +1

    con you give provide a link to this code on git

  • @ilkerkiris3367
    @ilkerkiris3367 5 лет назад +3

    Very nice presentation, but the project is not in your github. Are you able to upload your demo project to your github repo ?

    • @nourkrichene1090
      @nourkrichene1090 4 года назад

      You can find a similar example in this repository: github.com/NoorKrichen/GrphQL-Spring-Example

  • @sumanthvarada
    @sumanthvarada 4 года назад

    Thanks for this wonderful tutorial. is it possible to customize the graphql response format like following ?
    {
    "data":{},
    "info": {},
    "audit": {},
    "error": {}
    }

    • @jasonbikeracer1
      @jasonbikeracer1 4 года назад +1

      You could do that with spring aspects

    • @sumanthvarada
      @sumanthvarada 4 года назад

      Jason Buchanan Could you please tell how this can be achieved? Please share if you have any reference

    • @jasonbikeracer1
      @jasonbikeracer1 4 года назад

      @@sumanthvarada so an aspect is something that happens at some point in any function that fits a given criteria and can manipulate data or the state of your thread. It's usually used for logging but in this case you can feed it your output using an after annotation from any function in your class and have it parsed any way you want.
      howtodoinjava.com/spring-aop/aspectj-after-annotation-example/
      However that violates the point of this whole thing and your going back to almost rewrapping your graph but for rest just to get this data format that doesn't make sense to work. Ie the client should never see any audit or info and an error is a code greater than or equal to 400 with no data but a message

  • @moisescervantes539
    @moisescervantes539 4 года назад

    How to add jwt suport in graphql?

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

      Jwt should be in your http header, you can find more by looking in Spring Security documentation.

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

    Really a nice video.Can you please share the github repo for java+ graphql
    code?

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

      I google another tutorial www.baeldung.com/spring-graphql not from this video

  • @nourkrichene1090
    @nourkrichene1090 4 года назад +1

    You can find a similar example in this repository: github.com/NoorKrichen/GrphQL-Spring-Example