Skip to content

Make sure fragment imports are resolved#542

Merged
hwillson merged 1 commit intomainfrom
issue-538
Apr 29, 2021
Merged

Make sure fragment imports are resolved#542
hwillson merged 1 commit intomainfrom
issue-538

Conversation

@hwillson
Copy link
Copy Markdown
Member

This was a regression caused by trying to extract a string based representation of an operation from a document AST's source property, to avoid making an extra call to print. While this works in a lot of cases, it does not handle source imports properly as the #import ... statement is present in source. This commit avoids using source, making sure we convert the AST into a string using print, to handle imports properly.

Fixes #462

This was a regression caused by trying to extract a string based
representation of an operation from a document AST's `source`
property, to avoid making an extra call to `print`. While this
works in a lot of cases, it does not handle source imports
properly as the `#import ...` statement is present in `source`.
This commit avoids using `source`, making sure we convert the
AST into a string using `print`, to handle imports properly.

Fixes #462
@hwillson hwillson merged commit da400f3 into main Apr 29, 2021
@hwillson hwillson deleted the issue-538 branch April 29, 2021 14:44
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.

New version doesn't resolve fragment imports?

1 participant