12 lines
185 B
JavaScript
12 lines
185 B
JavaScript
export default {
|
|
Query: {
|
|
sub: async (parent, { name }, { models }) => {
|
|
return await models.sub.findUnique({
|
|
where: {
|
|
name
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|