Skip to content

Commit

Permalink
Rename query result class
Browse files Browse the repository at this point in the history
  • Loading branch information
LLipter committed Nov 23, 2023
1 parent 0ea06f0 commit 5e671d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devbin/mujin_webstackclientpy_generategraphclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _DiscoverMethods(queryOrMutationType):

def _PrintMethod(queryOrMutation, operationName, parameters, description, returnType):
if queryOrMutation == 'query' and operationName.startswith("List"):
print(' @UseGraphQueryResult')
print(' @UseLazyGraphQuery')
builtinParameterNames = ('fields', 'timeout')
print(' def %s(self, %s):' % (operationName, ', '.join([
'%s=None' % parameter['parameterName'] if parameter['parameterNullable'] else parameter['parameterName']
Expand Down Expand Up @@ -127,7 +127,7 @@ def _PrintClient(serverVersion, queryMethods, mutationMethods):
print('#')
print('')
print('from .webstackgraphclientutils import GraphClientBase')
print('from .webstackgraphclientutils import UseGraphQueryResult')
print('from .webstackgraphclientutils import UseLazyGraphQuery')
print('')
print('class GraphQueries:')
print('')
Expand Down

0 comments on commit 5e671d1

Please sign in to comment.