-
First of all, this is a great library. The example codes are very helpful. I was able to quickly setup database schema along with graphql using this amazing library. But I am still a bit confused on how to setup nested entity query using async-graphql even after looking at the example code. I am trying the get the customer query to be able to lookup a list of orders. I saw the example and tried to follow along to make it works with my database schema using sea-orm. Here is the customer.rs under entity. Here is the order.rs under entity. How do I change the code that makes use of async-graphql to support nested entity (order) in the following query? Apologize if this sounds like a dumb question, I am new to rust as well as async-graphql. p.s. I managed to get federation working locally using rover dev, but I just couldn't figure out how to get the resolver for nested entity. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Ok. Just stumble upon this one... Going to improvise and see if that helps... |
Beta Was this translation helpful? Give feedback.
-
I thought I could borrow and improvise the implementation for User-Reviews from the example. I added
and added the following above pub struct Customer That didn't seem to help... |
Beta Was this translation helpful? Give feedback.
-
See if this helps you? https://romankudryashov.com/blog/2020/12/graphql-rust/#_apollo_federation_support |
Beta Was this translation helpful? Give feedback.
See if this helps you?
https://romankudryashov.com/blog/2020/12/graphql-rust/#_apollo_federation_support