You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query that returns multiple types based on provided parameters.
151
151
152
+
In addition to bulk loading specific types for a given team, you can scope and filter the query to
153
+
return more specific datasets. We sometimes refer to this as "Smart Load", but it's still APIv3's
154
+
`bulk_load` query.
155
+
152
156
_Note: Some items, such as `availability` are not currently available for `bulkLoad` for performance reasons. Likewise, loading many types at once without narrowing the scope may provide a less than optimal response, or possibly incur an API timeout with larger datasets._
153
157
154
158
### Params
159
+
_Note: There are two ways you can call `bulkLoad`. This is the simple / classic way._
155
160
*`teamId`: [int] - a `teamId` to load items for.
156
161
*`types`: [array] - array of types to load.
157
162
*`callback`: [function] - callback to be executed when the operation completes.
158
163
164
+
_Using "Smart Load" params_
165
+
*`params`: [object] - object should contain the following params:
166
+
-`teamId`: [int] - a `teamId` to load items for.
167
+
-`types`: [array] - array of types to load.
168
+
-`scopeTo`: [string] - item in the query to scope other items to.
169
+
-`[itemType__queryParam]`: [string] - additional filters can be set with the item's type and one of its available search params separated by a double underscore (`__`). This accepts a string for the value - which could be a date, an ID, or event a list of IDs. See the specific event's available search params with `teamsnap.collections.[itemCollection].queries.search.params` where `itemCollection` is the collection to look up.
170
+
*`callback`: [function] - callback to be executed when the operation completes.
0 commit comments