mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-07-23 04:58:27 -06:00
PR-448199:
Adding files from first version. Creating GraphQL server with their controllers and their models, squema and resolvers. Adding support to webpack and typescript.
This commit is contained in:
9
models/index.ts
Normal file
9
models/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
'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`;
|
||||
};
|
Reference in New Issue
Block a user