Skip to content

New version doesn't resolve fragment imports? #462

@jeffstedt

Description

@jeffstedt

Hi! I recently got my Apollo Client Devtools updated where I noticed that imported fragments no longer work. Does v3 introduce any breaking changes or is it suppose to be backwards compatible?

Intended outcome:

query Me {
  me {
    id
    ...SomeFragment
  }
}

fragment SomeFragment on User {
	displayName
}

Actual outcome:

#import "./fragments/SomeFragment.gql"

query Me {
  me {
    id
    ...SomeFragment
  }
}

How to reproduce the issue:
Setup a client using webpack
https://www.apollographql.com/docs/react/integrations/webpack/
I switched between Firefox that's using v2 and Chrome that's using v3 to compare changes.

Desktop (please complete the following information):

  • OS: macOS 11.2.1
  • Browser chrome
  • Browser version 89.0.4389.90
  • Extension version 3.0.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions