You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function SelectionSet::is_introspection incorrectly returns false when fragment spreads are repeated at the top level of an operation. For example, this operation should return true from is_introspection, but it does not:
query IntrospectRepeatedIndirectFragment {
...A
...B
}
fragment A on Root { ...C }
fragment B on Root { ...C }
fragment C on Root {
__schema {
types {
name
}
}
}
Steps to reproduce
Will post a PR with a fix and unit tests shortly.
Expected result
The operation above should be considered as introspection and is_introspection should return true.
Actual result
It returns false.
Environment
Operating system and version: macOS
Shell (bash/zsh/powershell): bash
apollo-rs crate: main
The text was updated successfully, but these errors were encountered:
Description
The function
SelectionSet::is_introspection
incorrectly returns false when fragment spreads are repeated at the top level of an operation. For example, this operation should return true fromis_introspection
, but it does not:Steps to reproduce
Will post a PR with a fix and unit tests shortly.
Expected result
The operation above should be considered as introspection and
is_introspection
should return true.Actual result
It returns false.
Environment
apollo-rs
crate: mainThe text was updated successfully, but these errors were encountered: