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

Latest version only sends fragments to the server #95

Open
mxstbr opened this issue May 20, 2019 · 2 comments
Open

Latest version only sends fragments to the server #95

mxstbr opened this issue May 20, 2019 · 2 comments

Comments

@mxstbr
Copy link

mxstbr commented May 20, 2019

For some reason when using the latest v1.4.1, the client only sends the fragments to the server but not the query:

export const GetThreadDocument = gql`
  query getThread($id: ID!) {
    thread: node(id: $id) {
      ...thread
      ...threadParticipants
    }
  }
  ${threadFragmentDoc}
  ${threadParticipantsFragmentDoc}
`;

results in only the threadFragmentDoc and the threadParticipantsFragmentDoc being sent to the server.

@evenchange4
Copy link
Owner

evenchange4 commented May 21, 2019

Oh, @mxstbr thanks you for testing it so quickly. As I #90 (comment) below the origin issue , it should be fixed with version v1.4.2. Could you test it again?

@lanwin
Copy link

lanwin commented Dec 3, 2019

I currently have exactly the opposite problem. The generated DocumentNode only contains the Source for the Query itself but no the fragments. While the definitions list also contains the fragments.

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

No branches or pull requests

3 participants