// For the connections
`query {
entries(...) {
edges...
}
}`
export async function EntriesResolver(root, args, context, info);
`query {
entry(...) { }
}`
export async function EntryResolver(root, args, context, info);
// My suggestion is put this function in the `Tag.ts` file.
// The goal is put all Resolvers that query the same database in the same file
`query {
entry(...) {
tags(...) {
edges...
}
}
}`
export async function EntryTagsResolver(root, args, context, info) {
const row = await knex
.from("tags")
.where({
tag.entryID: root.id,
})
.select();
...
}