-
-
Notifications
You must be signed in to change notification settings - Fork 144
Support GraphQL-core 3.3 #577
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,9 @@ jobs: | |
django-version: | ||
- 4.2.* | ||
- 5.0.* | ||
graphql-core-version: | ||
- 3.3.0a5 | ||
- 3.2.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe Not sure if |
||
python-version: | ||
- '3.8' | ||
- '3.9' | ||
|
@@ -80,6 +83,8 @@ jobs: | |
run: poetry install | ||
- name: Install Django ${{ matrix.django-version }} | ||
run: poetry run pip install "django==${{ matrix.django-version }}" | ||
- name: Install graphql-core ${{ matrix.graphql-core-version }} | ||
run: poetry run pip install "graphql-core==${{ matrix.graphql-core-version }}" | ||
- name: Test with pytest | ||
run: poetry run pytest --showlocals -vvv --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,12 @@ | |
GraphQLWrappingType, | ||
get_argument_values, | ||
) | ||
from graphql.execution.collect_fields import collect_sub_fields | ||
|
||
try: | ||
from graphql.execution.collect_fields import collect_sub_fields | ||
except ImportError: | ||
from graphql.execution.collect_fields import collect_subfields as collect_sub_fields | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably will need to type ignore this line |
||
|
||
from graphql.language.ast import OperationType | ||
from graphql.type.definition import GraphQLResolveInfo, get_named_type | ||
from strawberry import relay | ||
|
Uh oh!
There was an error while loading. Please reload this page.