create-node-ts-graphql-server/models/index.ts

9 lines
240 B
TypeScript
Raw Normal View History

'use strict';
export const getTestModel = async () => {
return 'This is the text response for Test Query from a model';
};
export const addTextModel = async ({ text }) => {
return `Simulate to insert some text: ${text} from a model`;
};