|
|
@ -1,5 +1,4 @@ |
|
|
var client = require("../client"); |
|
|
var client = require("../client"); |
|
|
var extend = require("extend"); |
|
|
|
|
|
var json = require("../json"); |
|
|
var json = require("../json"); |
|
|
var querystring = require("querystring"); |
|
|
var querystring = require("querystring"); |
|
|
|
|
|
|
|
|
@ -54,7 +53,9 @@ function create(graphJSON, options, callback){ |
|
|
}; |
|
|
}; |
|
|
// Use `extend` to merge `options` into `body`
|
|
|
// Use `extend` to merge `options` into `body`
|
|
|
// DEV: `extend` will ignore any properties whose value is `undefined`
|
|
|
// DEV: `extend` will ignore any properties whose value is `undefined`
|
|
|
extend(body, options || {}); |
|
|
|
|
|
|
|
|
if (typeof options === "object" && options !== null) { |
|
|
|
|
|
Object.assign(body, options); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Create the request
|
|
|
// Create the request
|
|
|
var params = { |
|
|
var params = { |
|
|
|