Define a resource once. YALC turns it into REST, GraphQL, service, repository, and dataloader surfaces that share the same contract.
export const usersResource = CrudGenResourceFactory<SkeletonUser>({
entityModel: SkeletonUser,
graphql: true,
rest: true,
});