changed api: options.where is now options.where.document, for that reason is build an equivalent for relationships: options.where.relationship