Creates a fully functioning, performant, extensible GraphQL endpoint from a Mongo DB. Supports middleware, Mongo 4 transactions.
423
stars
29
forks
source link
X has many X's and belongs to one X: XMetadata has already been declared #80
Closed
peebles closed 3 years ago
I have a schema where Organizations belong to an Organization (parent) and have many child Organizations:
The Organization.resolvers.js file ends up with:
which generates: SyntaxError: Identifier 'OrganizationMetadata' has already been declared
If I delete one of those two lines, everything I've tried works so far ... at least queries. I have not yet tried mutations with related data.