HubSpot / hubspot-api-nodejs

HubSpot API NodeJS Client Libraries for V3 version of the API
Apache License 2.0
321 stars 104 forks source link

Can `associations` in creation request be optional? #422

Closed bigen1925 closed 3 weeks ago

bigen1925 commented 11 months ago

Hi there,

Thank you all for developing and maintaining this great library! It makes us joyful to use Hubspot. :D

I feel happy that we can associate objects with associations interface when create other objects. It is so smart and readable.

On the other hand, in most cases I create objects without associations. Then I need write associations: [] every time like

await hubspot.crm.contacts.basicApi.create({
    properties,
    associations: [], // without associations
})

, because it is required.

How about to make associations optional?

shjacobs303 commented 10 months ago

Either this or update the documentation, though preferrably change associations to optional.

ksvirkou-hubspot commented 3 weeks ago

Hi everyone The associations property have been made optional in the latest version of the SDK.