mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-07-01 02:08:27 -06:00
PR-780243: adding only one source of truth.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
import { getTest, addText } from '../../controllers/controllerGraphQL';
|
||||
import { getTest, addText } from '@controllerGraphQL';
|
||||
|
||||
// A map of functions which return data for the schema.
|
||||
const resolvers = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { makeExecutableSchema } from '@graphql-tools/schema';
|
||||
import resolvers from'../resolvers';
|
||||
import resolvers from'@GraphQL/resolvers';
|
||||
import Test from './Test.gql';
|
||||
|
||||
// The GraphQL schema
|
||||
|
@ -1,8 +1,8 @@
|
||||
'use strict';
|
||||
import express from 'express'; //express
|
||||
import { graphqlHTTP } from 'express-graphql';
|
||||
import { config } from '../../config';
|
||||
import schema from './schema';
|
||||
import { config } from '@config';
|
||||
import schema from '@GraphQL/schema';
|
||||
|
||||
const server = express.Router();//Router de Express
|
||||
|
||||
|
Reference in New Issue
Block a user