Spring Boot With GraphQL Example | Java Techie

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 76

  • @VijayKumar-sv3zd
    @VijayKumar-sv3zd 2 роки тому +3

    Sir you are my guru.. I have learnt complete microservices with spring boot by watching your videos... I have even cracked interviews with that... thank you so much. Love & support 🙏

    • @Javatechie
      @Javatechie  2 роки тому +2

      Good to know that Vijay. Keep learning 😃👍🏻

  • @durgaraju5805
    @durgaraju5805 Рік тому

    Sir, you are awesome teacher and I learned all my microservices topics from your tutorial . The moment I got requirement to implement graphql, I searched in your playlist and I got the concept completely 😊 thank you sir!!

  • @akware977
    @akware977 2 роки тому +1

    thanks for the wonderful explanation, one thing is clear we need to send graphQL syntax in the REST call to get data.

  • @aviksutar
    @aviksutar 5 місяців тому +1

    life saving bro.. keep going and keep saving developer's lives

  • @Hemantkumar7990
    @Hemantkumar7990 2 роки тому +1

    the best part about this video is only content no extra stuff just for the sake of increasing length.

  • @harshverm776
    @harshverm776 Рік тому +1

    Hi,
    Can we have graphql on top of rest calls?
    Like we will request in the form of rest only, but will fetch the data with the help of graphql at the backend. Is that possible???

  • @sanjaychepuri5944
    @sanjaychepuri5944 2 роки тому +1

    Hello sir, Thanks for your video 🙏. Could you please make the Video of Graphql With Microservices.

  • @mehlagaurav8
    @mehlagaurav8 3 роки тому +1

    Very informative tutorial ! One question : how can I add a date-range or integer-range filter in the schema? what is the syntax ? I tried giving same parameter twice but didn't work. The requirement is something like :: type Query {
    getByFilter(market_segment: String, partitiondate BETWEEN : fromdate, todate)

    • @Javatechie
      @Javatechie  3 роки тому +1

      Give date in string but in your dto just use @JsonFormat on top of date attributes

    • @mehlagaurav8
      @mehlagaurav8 3 роки тому

      @@Javatechie fromDate and toDate are one attribute = partitiondate BigInt, it is date's concatenated form. Requirement is to get results where partitiondate BETWEEN 20150212 and 20150312 (for example) what should the schema look like ? the above gives syntax error

    • @mehlagaurav8
      @mehlagaurav8 3 роки тому +1

      Hi sir.. really appreciate your help .. It would be great if you could point me to any article or anything to resolve the above mentioned scenario.. any help is greatly appreciated.. thanks

  • @pvreddytechnology7032
    @pvreddytechnology7032 2 роки тому

    Very nice explanation and thank you !!!!. As of now we are fetching required field through graphql.Here i have one question . Shall i insert data through graphql . is it possible .

  • @jabert33
    @jabert33 2 роки тому +1

    Thanks a lot Sir
    ...Love & support 🙏

  • @Milkyway____
    @Milkyway____ 2 роки тому +1

    Great tutorial. Appreciate your efforts. Thanks!

  • @shishirkakhandki9230
    @shishirkakhandki9230 2 роки тому +1

    Thank you for an amazing video Basant!

  • @pitchaiahbheemanapally2338
    @pitchaiahbheemanapally2338 2 роки тому

    So is it fetching specific property only from DB or it is fetching entire entity from db and filtering? If it is second case, can't we do the same in REST API?

  • @intutivestriker89
    @intutivestriker89 2 роки тому

    Could you create a video on how to call graphQL end point from spring boot application. It helps to design a inter service communication between 2 micro services.

  • @codercoder7270
    @codercoder7270 4 роки тому +1

    Please make a video for graphql exception handling

  • @benudharbehera003
    @benudharbehera003 3 роки тому +1

    Hey Man. Thanks for ur effort. Why don't u make a tutorial on mutation

  • @VijayKumar-sv3zd
    @VijayKumar-sv3zd 2 роки тому +1

    Hi Sir, Can you pls make a video on apollo graphql federation?

    • @Javatechie
      @Javatechie  2 роки тому +1

      Okay i will check this out. Not aware about this Apollo

  • @amizan8653
    @amizan8653 4 роки тому +1

    This is a super good tutorial, thanks so much for posting!

  • @muhammadharisasif1228
    @muhammadharisasif1228 5 років тому +1

    Amazing Job!
    One Question. How can we consume GraphQL API? Like in case of rest we use RestTemplate to consume, is there anything to consume GraphQL??

    • @rohitkrishnan5456
      @rohitkrishnan5456 5 років тому +1

      Lots of libraries for it... Apollo, relay...if you are using react... otherwise you can just post the query as raw text to the
      /graphql endpoint

    • @Javatechie
      @Javatechie  5 років тому

      Muhammad , I never tried to consume it from backend,let me find work around

  • @karansvnit
    @karansvnit 5 років тому +4

    20:00 graphqls is done

  • @princelyamirthasamy7804
    @princelyamirthasamy7804 2 роки тому

    Hi Bro,
    Can you tell me how to make graphql through Webclient inside of Repository query? I am facing issue with Webclient. Help me on this.

  • @premraj.m
    @premraj.m 7 місяців тому

    16:26 GraphQL implementation starts

  • @phaivv656
    @phaivv656 3 роки тому

    Hi, so with springboot, the apollo server is embemed in the tomcat?

  • @_subrata
    @_subrata 5 років тому

    How to do mutation? Can you help to show an example with create, update, delete?

  • @aviksutar
    @aviksutar 5 місяців тому

    can you make a video on how to upload file in FileNet? please

  • @bouaicha1
    @bouaicha1 2 роки тому +1

    thinks brother , verry good

  • @sagaraitla5050
    @sagaraitla5050 3 роки тому +1

    I have requirement that need to consume graphql endpoint from spring boot.
    what is best approach @basant

    • @Javatechie
      @Javatechie  3 роки тому +1

      Please try this
      medium.com/decathlontechnology/minimal-graphql-client-request-with-spring-boot-22e0041b170

  • @Kiranskokie
    @Kiranskokie 6 років тому +1

    wonderful, straight to the point.

  • @___vandanagupta___
    @___vandanagupta___ 3 роки тому +1

    Hey thanks for this. Can you also share a video to design graphql client query

    • @Javatechie
      @Javatechie  3 роки тому

      Okay I will check this. Many viewers asked same so let me try this out

    • @___vandanagupta___
      @___vandanagupta___ 3 роки тому +1

      Thanks so much sir

  • @jhonceenaskt
    @jhonceenaskt 5 років тому +1

    I get the error while POST the data : javax.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session : [com.deepen.spring.graphql.api.entity.Person#0]

    • @Javatechie
      @Javatechie  5 років тому +1

      Try with different id and do let me know

    • @jhonceenaskt
      @jhonceenaskt 5 років тому

      Thank u

    • @Javatechie
      @Javatechie  5 років тому

      @@jhonceenaskt is it worked for you ?

  • @naragoudb5702
    @naragoudb5702 5 місяців тому +1

    Big Thanks basant

    • @Javatechie
      @Javatechie  5 місяців тому +1

      Update version will upload this weekend

  • @dipakdas2
    @dipakdas2 2 роки тому

    Could you please update github with new dependencies in pom.xml, as its showing error while running main method

  • @Rajnish089
    @Rajnish089 4 роки тому +1

    Guruji post some interview question for rest n microservices config releated component

  • @arabindapadhiali824
    @arabindapadhiali824 3 роки тому +1

    What is the way using GarphQL without SpringBoot but plain JAVA 8 ?

    • @Javatechie
      @Javatechie  3 роки тому

      Yes you can do that by adding graphql dependency . Just google it

    • @arabindapadhiali824
      @arabindapadhiali824 3 роки тому +1

      @@Javatechie Thanks. We need only graphql-java-tools or graphql-spring-boot-starter as well.

    • @Javatechie
      @Javatechie  3 роки тому

      No stater required .

    • @arabindapadhiali824
      @arabindapadhiali824 3 роки тому +1

      @@Javatechie But we need spring core jars right ? Because my project is a legacy java project and not using spring ?

    • @Javatechie
      @Javatechie  3 роки тому

      Why you need spring if it's only Java project . Just google it you will find ready made code

  • @krishnakumar4368
    @krishnakumar4368 Рік тому

    Graphql mutation implement in springboot explain plss

  • @imtech55
    @imtech55 4 роки тому

    Is there any way in Java to avoid having schema file created and generate the schema directly from Pojo..may be through java reflection? I want to avoid creating schema.graphql file

    • @Javatechie
      @Javatechie  4 роки тому

      Hi Sumit , I don't think we have such feature but let me check

    • @imtech55
      @imtech55 4 роки тому

      @@Javatechie must be possible through reflection in java. Through which we can loop through pojo fields and register types. But am blank at the moment how to proceed with it as am new to graphql at the moment.

    • @rajeshpathak7440
      @rajeshpathak7440 2 роки тому

      use SPQR

  • @mcskrishna
    @mcskrishna 4 роки тому +1

    Nice, thanks

  • @muhammadharisasif663
    @muhammadharisasif663 5 років тому

    How can we consume this api in spring boot application?

  • @arifpari9561
    @arifpari9561 3 роки тому +1

    Thank You soo Much Broo

  • @abduchadili5691
    @abduchadili5691 3 роки тому

    I couldn't see anything ! the screen is dark and obscure

  • @DushmantaKumarSahu
    @DushmantaKumarSahu 4 роки тому +1

    How to do Update and delete?

    • @Javatechie
      @Javatechie  4 роки тому

      Graphql meant for retrieval purpose .if you want update or delete you need to write dao logic either using jpa or hibernate

  • @benudharbehera003
    @benudharbehera003 3 роки тому

    Am getting Query failed to Parse

  • @dashtech1387
    @dashtech1387 6 місяців тому

    Not Wonderful I am not getting...ok please repeat again

  • @flowchart5471
    @flowchart5471 2 роки тому +1

    Hi Basant, I was trying to create same flow, and while adding data in h2 getting error"
    trace": "org.springframework.dao.DataIntegrityViolationException: A different object with the same identifier value was already associated with the session : [com.example.graphQl.entity.Person#0]; nested exception is javax.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session : [com.example.graphQl.entity.Person#0]
    \tat org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:400)
    \tat or
    I tried to fix , but couldn't fix. Can you please hep me?

    • @Javatechie
      @Javatechie  2 роки тому +1

      It seems id is already exists please try with different id

    • @flowchart5471
      @flowchart5471 2 роки тому +1

      @@Javatechie Thanks Basant it worked.

  • @elliotalderson9517
    @elliotalderson9517 6 місяців тому

    nice