-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add batching
params
#260
Add batching
params
#260
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've copy the comments I've done on your fork PR, to be able to follow easily the answers here ;)
graphene_sqlalchemy/converter.py
Outdated
resolver = get_custom_resolver(obj_type, orm_field_name) | ||
if resolver is None: | ||
resolver = get_batch_resolver(relationship_prop) if batching_ else \ | ||
get_attr_resolver(obj_type, relationship_prop.key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_attr_resolver(obj_type, relationship_prop.key) | |
elif resolver is None: | |
resolver = get_attr_resolver(obj_type, relationship_prop.key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a test to check approve rights.
@Nabellaleen Ignore @katy-sadowski approval - I asked her to do this so I can tests different permission settings. |
Was the default batching true or false? |
Add parameters to toggle
batching
on or off. This can be configured at 2 levels:SQLAlchemyObjectType.meta.batching
ORMfield.batching
. This trumpsSQLAlchemyObjectType.meta.batching
.