File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,8 @@ def get_user_groups(self) -> Iterator["UserGroup"]:
306
306
Iterator[UserGroup]: An iterator over the user groups.
307
307
"""
308
308
query = """
309
- query GetUserGroupsPyApi {
310
- userGroups {
309
+ query GetUserGroupsPyApi($first: PageSize, $after: String) {
310
+ userGroups(first: $first, after: $after) {
311
311
nodes {
312
312
id
313
313
name
Original file line number Diff line number Diff line change @@ -91,7 +91,9 @@ def ephemeral_endpoint() -> str:
91
91
92
92
93
93
def graphql_url (environ : str ) -> str :
94
- if environ == Environ .PROD :
94
+ if environ == Environ .LOCAL :
95
+ return 'http://localhost:3000/graphql'
96
+ elif environ == Environ .PROD :
95
97
return 'https://api.labelbox.com/graphql'
96
98
elif environ == Environ .STAGING :
97
99
return 'https://api.lb-stage.xyz/graphql'
@@ -107,7 +109,9 @@ def graphql_url(environ: str) -> str:
107
109
108
110
109
111
def rest_url (environ : str ) -> str :
110
- if environ == Environ .PROD :
112
+ if environ == Environ .LOCAL :
113
+ return 'http://localhost:3000/api/v1'
114
+ elif environ == Environ .PROD :
111
115
return 'https://api.labelbox.com/api/v1'
112
116
elif environ == Environ .STAGING :
113
117
return 'https://api.lb-stage.xyz/api/v1'
You can’t perform that action at this time.
0 commit comments