code: function resolvePlugins(definition: SchemaDefinition) {
    return promiseReduce(
      definition._plugins,
      (accum, p, name) => {
        const { plugin, installed } = p;
        if (!installed) {
          assert(
            plugin instanceof GraphQLFactoryPlugin,
            `plugin ${name} is not an instance of GraphQLFactoryPlugin`,
          );
          if (plugin.dependenciesMet(definition)) {
            definition.merge(plugin);
            return Promise.resolve(plugin.install(definition)).then(() => {
              p.installed = true;
            });
          }
        }
      },
      null,
      true,
    );
  }
docs: Attempts to install any uninstalled plugins