Skip to content

Commit

Permalink
Merge branch 'beta' into fetch-opts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Sep 6, 2023
2 parents ce04ca2 + 42e14fe commit 67ef7d3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions v4_MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Guide to migrating from `3.x` to `4.x`
- [Options](#options-1)
- [Top level methods have been removed](#top-level-methods-have-been-removed-1)
- [Method name changes](#method-name-changes-1)
- [Parameter changes](#parameter-changes)

## General

Expand Down Expand Up @@ -387,3 +388,23 @@ await management.jobs.importUsers({
connection_id: 'con_123',
});
```

### Parameter changes

The `fields` parameter, used to include or exclude fields from a response, now takes only a string.

#### Before

```js
await management.connections.getAll({
fields: ['name', 'strategy'],
});
```

#### After

```js
await management.connections.getAll({
fields: 'name,strategy',
});
```

0 comments on commit 67ef7d3

Please sign in to comment.