code: function defineRelationshipResolution(
    schema: GraphQLSchema,
    relationships: Relationship[],
    database: DatabaseInterface,
  ): void {
    relationships.forEach(relationship => {
      defineFieldResolve(
        schema,
        relationship.path[0].fromType,
        relationship.fieldName,
        database.generateRelationshipResolver(relationship),
      );
    });
  }
docs: generate resolve functions for connection fields