Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import { readFileSync } from 'node:fs';
import path from 'node:path';
import { DateTimeResolver } from 'graphql-scalars';
import { gql } from 'graphql-tag';
const basePath = path.join(process.cwd(), 'src', 'lib', 'graphql', 'typeDefs');
const commonSDL = readFileSync(path.join(basePath, 'common.graphql'), 'utf8');
const userSDL = readFileSync(path.join(basePath, 'user.graphql'), 'utf8');
const recipeSDL = readFileSync(path.join(basePath, 'recipe.graphql'), 'utf8');
const metadataSDL = readFileSync(
path.join(basePath, 'metadata.graphql'),
'utf8',
);
export const typeDefs = gql`
${commonSDL}
${userSDL}
${recipeSDL}
${metadataSDL}
`;
export const resolvers = {
DateTime: DateTimeResolver,
};
|