© 2026 Hedgehog Software, LLC
export const getCreatorById: GetCreatorById<any, any> = async ({ creatorId }, context) => { if (!context.user) { throw new HttpError(401); } return context.entities.Creators.findFirst({ orderBy: { id: 'asc' }, where: { AND: [ { userId: +creatorId, }, ], }, include: { profile: true, stats: true, }, }); };
export const getCreators: GetCreators<any, any> = async (args, context) => { if (!context.user) { throw new HttpError(401); } return context.entities.Creators.findMany({ orderBy: { id: 'asc' }, include: { stats: true, youtubeStats: true, profile: true }, }); };
Join the Discord to ask follow-up questions and connect with the community
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,603 Members