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
Copy file name to clipboardExpand all lines: libs/labelbox/src/labelbox/client.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -179,14 +179,21 @@ def execute(
179
179
180
180
Args:
181
181
query (str): The query to execute.
182
-
variables (dict): Variables to pass to the query.
182
+
params (dict): Variables to pass to the query.
183
+
data (dict): Includes the query and variables as well as the map for file upload multipart/form-data requests as per GraphQL multipart request specification.
184
+
files (dict): File descriptors to pass to the query for file upload multipart/form-data requests.
185
+
timeout (float): Timeout for the request.
186
+
experimental (bool): Whether to use experimental features.
187
+
error_log_key (str): Key to use for error logging.
183
188
raise_return_resource_not_found (bool): If True, raise a
184
189
ResourceNotFoundError if the query returns None.
185
190
error_handlers (dict): A dictionary mapping graphql error code to handler functions.
186
191
Allows a caller to handle specific errors reporting in a custom way or produce more user-friendly readable messages
187
192
188
193
Returns:
189
194
dict: The response from the server.
195
+
196
+
See UserGroupV2.upload_members for an example of how to use this method for file upload.
0 commit comments