Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-04-09 16:38:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
945a2e59d4d188b20d1fdb6cabd1fee5ff7de820
945a2e59
1 parent
3e8507f0
integrate schema management
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
back/src/schema.js
back/src/schema.js
0 → 100644
View file @
945a2e5
import
path
from
"path"
;
import
{
makeExecutableSchema
}
from
"graphql-tools"
;
import
{
fileLoader
,
mergeResolvers
,
mergeTypes
}
from
"merge-graphql-schemas"
;
const
allTypes
=
fileLoader
(
path
.
join
(
__dirname
,
"api/**/*.graphql"
));
const
allResolvers
=
fileLoader
(
path
.
join
(
__dirname
,
"api/**/*.js"
));
const
schema
=
makeExecutableSchema
({
typeDefs
:
mergeTypes
(
allTypes
),
resolvers
:
mergeResolvers
(
allResolvers
),
});
export
default
schema
;
Please
register
or
login
to post a comment