Skip to content

Commit 3cb6679

Browse files
committed
remove duplicate schemas
1 parent 66a9977 commit 3cb6679

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/graphql/schemas/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { fileLoader, mergeTypes } from 'merge-graphql-schemas';
22
import path from 'path';
3+
import _ from 'lodash';
34

4-
const typesArray = fileLoader(path.join(__dirname, './'));
5+
const typesArray = _.uniq(fileLoader(path.join(__dirname, './')));
56

67
export default mergeTypes(typesArray);

0 commit comments

Comments
 (0)