As I understand it, beyond describing exactly what your api should look like, GraphQL is also meant to save resources by only returning data that you asked for. But when I write resolvers like this:
const user = await context.prisma.user.findUnique({
where: {authProviderId: args.authProviderId},
include: {
profile: {
include: {
basicInfo: true,
},
},
},
});
And I only need certain fields returned, doesn’t that negate the whole ressource preservation?
Thanks!