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 🙏
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!!
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???
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 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
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
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 .
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?
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.
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]
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 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.
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?
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 🙏
Good to know that Vijay. Keep learning 😃👍🏻
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!!
thanks for the wonderful explanation, one thing is clear we need to send graphQL syntax in the REST call to get data.
Yes
life saving bro.. keep going and keep saving developer's lives
the best part about this video is only content no extra stuff just for the sake of increasing length.
Thanks buddy 😊
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???
Hello sir, Thanks for your video 🙏. Could you please make the Video of Graphql With Microservices.
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)
Give date in string but in your dto just use @JsonFormat on top of date attributes
@@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
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
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 .
Thanks a lot Sir
...Love & support 🙏
Great tutorial. Appreciate your efforts. Thanks!
Thank you for an amazing video Basant!
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?
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.
Please make a video for graphql exception handling
Hey Man. Thanks for ur effort. Why don't u make a tutorial on mutation
Mutation ? Didn't get you
Hi Sir, Can you pls make a video on apollo graphql federation?
Okay i will check this out. Not aware about this Apollo
This is a super good tutorial, thanks so much for posting!
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??
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
Muhammad , I never tried to consume it from backend,let me find work around
20:00 graphqls is done
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.
16:26 GraphQL implementation starts
Hi, so with springboot, the apollo server is embemed in the tomcat?
How to do mutation? Can you help to show an example with create, update, delete?
can you make a video on how to upload file in FileNet? please
thinks brother , verry good
I have requirement that need to consume graphql endpoint from spring boot.
what is best approach @basant
Please try this
medium.com/decathlontechnology/minimal-graphql-client-request-with-spring-boot-22e0041b170
wonderful, straight to the point.
Hey thanks for this. Can you also share a video to design graphql client query
Okay I will check this. Many viewers asked same so let me try this out
Thanks so much sir
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]
Try with different id and do let me know
Thank u
@@jhonceenaskt is it worked for you ?
Big Thanks basant
Update version will upload this weekend
Could you please update github with new dependencies in pom.xml, as its showing error while running main method
Guruji post some interview question for rest n microservices config releated component
Ok we will do that
What is the way using GarphQL without SpringBoot but plain JAVA 8 ?
Yes you can do that by adding graphql dependency . Just google it
@@Javatechie Thanks. We need only graphql-java-tools or graphql-spring-boot-starter as well.
No stater required .
@@Javatechie But we need spring core jars right ? Because my project is a legacy java project and not using spring ?
Why you need spring if it's only Java project . Just google it you will find ready made code
Graphql mutation implement in springboot explain plss
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
Hi Sumit , I don't think we have such feature but let me check
@@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.
use SPQR
Nice, thanks
How can we consume this api in spring boot application?
Thank You soo Much Broo
I couldn't see anything ! the screen is dark and obscure
How to do Update and delete?
Graphql meant for retrieval purpose .if you want update or delete you need to write dao logic either using jpa or hibernate
Am getting Query failed to Parse
Not Wonderful I am not getting...ok please repeat again
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?
It seems id is already exists please try with different id
@@Javatechie Thanks Basant it worked.
nice