Skip to content

Commit

Permalink
Oops...
Browse files Browse the repository at this point in the history
  • Loading branch information
nyteshade committed Nov 3, 2023
1 parent bfc9517 commit 4a1991d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Schemata.js
Original file line number Diff line number Diff line change
Expand Up @@ -1971,15 +1971,15 @@ export class Schemata extends String {

for (let file of files) {
try {
let { schemata, resolvers: newResolvers, typeDefs } = await importGraphQL(file)
let { schemata: newSchemata, resolvers: newResolvers, typeDefs } = await importGraphQL(file)
let context = {
file,
typeDefs,
resolvers
}

if (schemata) {
schemata = !schemata ? data.schemata : schemata.mergeSDL(data.schemata)
if (newSchemata) {
schemata = !schemata ? newSchemata : schemata.mergeSDL(newSchemata)
}

if (newResolvers) {
Expand Down

0 comments on commit 4a1991d

Please sign in to comment.