Skip to content
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 class property connection to SQLAlchemyObjectType #263

Merged
merged 2 commits into from
Feb 11, 2020

Conversation

jnak
Copy link
Collaborator

@jnak jnak commented Feb 11, 2020

Currently to get the default connection of a SQLAlchemyObjectType, you have to go through _meta. For example, PetType._meta.connection. This adds a public way to get it.

It's going to allow us to instantiate a SQLAlchemyConnectionField with the connection type (vs the model type). Instantiating a ConnectionField with the node type has been deprecated since graphene 2.0. We will deprecate it too soon for consistency.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 97.531% when pulling 510a000 on jnak:type-connection into 631513f on graphql-python:master.

@jnak jnak merged commit 6dca279 into graphql-python:master Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants