Vote count: 0 My question is similar to Javascript circular dependency in GraphQL code but my problem is not on the structure and database level, but in javascript (ES6). My schema definition is getting to grow too large but I don't see where I could cut the file into pieces. It seems to be logical to cut based on the different object types, but that brings to circular dependencies similarly to this very much simplified, non-working example: // -- file A.js import { bCoection, getBs } from 'B'; export class A { /*...*/ }; export var getA = (a) => { /*...*/ }; export var getAs = (array_of_as) => { /*...*/ }; export var aType = new GraphQLObjectType ({ name: 'A', fields: () => ({ bs: { type: b...
ادامه مطلب