* split up files * timestamps, scalars and dayjs * lib server directory * move bun types to dev * move storybook dark mode to dev * got timestamps working * fix reference * separate schema into files and add mutations
18 lines
No EOL
348 B
TypeScript
18 lines
No EOL
348 B
TypeScript
import { builder } from '../builder';
|
|
|
|
builder.queryType({});
|
|
|
|
builder.queryField('version', (t) =>
|
|
t.string({
|
|
description: 'Application version',
|
|
resolve: (parent, args, context) => context.config.app_version
|
|
})
|
|
);
|
|
|
|
builder.mutationType({});
|
|
|
|
import './Scalars';
|
|
import './posts';
|
|
import './users';
|
|
|
|
export const Schema = builder.toSchema(); |