spherehq/sphere

View on GitHub
packages/api/src/modules/account/resolvers/Query/sphere.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import { Prisma, SphereWhereUniqueInput } from '@spherehq/database'
 
import { fragmentWithArgs } from '../../../../utils'
 
Similar blocks of code found in 2 locations. Consider refactoring.
export const SphereResolver = (
_: any,
args: { where: SphereWhereUniqueInput },
context: { db: Prisma },
info,
) => context.db.sphere(args.where).$fragment(fragmentWithArgs(info))