         
         let queryResource: String = self.baseURL + "/db/data" + uri
         let queryURL: NSURL = NSURL(string: queryResource)!
-        let queryRequest: Request = Request(url: queryURL, credential: self.credentials)
+        let queryRequest: Request = Request(url: queryURL, credentials: self.credentials)
         
         queryRequest.getResource({(data, response) in
                     

    
        let relationshipResource: String = self.baseURL + "/db/data/relationship/" + relationship.relationshipMeta!.relationshipID() + "/properties"
        let relationshipURL: NSURL = NSURL(string: relationshipResource)!
        let relationshipRequest: Request = Request(url: relationshipURL, credential: self.credentials)
        
        relationship.updatingProperties = true
        


    // MARK: Lazy properties

    lazy private var credentials: (username: String, password: String)? = {
        
        if (self.username != nil && self.password != nil) {
            return (username: self.username!, password: self.password!)
        }
        
        return nil
    }()
  
    // MARK: Constructors
    
