So, I'm a little confused how to query fragments f...
# orm-help
a
So, I'm a little confused how to query fragments from the frontend with Apollo and how it works with Prisma client?
n
Where, in particular, lies your confusion in?
a
I have a query onst COURSE_INFO = gql` query Course($courseId: String!) { course(id: $courseId) { name description users { id name } } } `;
on the frontend
my confusion is how do I let prisma client handle this?
I noticed before prisma client there was
const { forwardTo } = require('prisma-binding');
@nilan thanks for any help
I'm following along with Wes Bos' course Advanced React but now I'm seeing that he is using prisma 1.17.1 ( which is prisma client right? ) and using prisma-binding so I guess my question is, is this the right way to do this or have you guys come up with a better way?
n
That's a very general question 🙂 You can use either
prisma-binding
or Prisma client, you can read https://www.prisma.io/forum/t/help-understanding-prisma-clients-value-proposition/4394?u=nilan for example to understand them both
a
haha I'm sorry just still a little confused but am loving prisma more and more. Thank you for making it!
is it common to use both together though?
n
Prisma client is not around for a long time yet, so that's difficult to say! Generally I see a lot of potential in combining them, as they both shine in different situations
a
ok thank you nilan for the help
👌 1
n
sure! 😊