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

Fix flow type for fragments #66

Closed
mufasa71 opened this issue Feb 10, 2019 · 1 comment · Fixed by #67
Closed

Fix flow type for fragments #66

mufasa71 opened this issue Feb 10, 2019 · 1 comment · Fixed by #67
Labels
bug Something isn't working

Comments

@mufasa71
Copy link

mufasa71 commented Feb 10, 2019

Example:

// @flow
import { gql } from 'graphql.macro'
const PostFragment = gql`
  fragment Post on PostType {
    title,
    date
  }
`

const GET_POSTS = gql`
  query getPosts {
    ...PostFragment
  }

  ${PostFragment}
`

Produces:
Cannot call gql because no more than 1 argument is expected by function

@evenchange4 evenchange4 added the bug Something isn't working label Feb 11, 2019
@evenchange4
Copy link
Owner

Thanks for reporting the issue!
Close it. Please feel free to reopen this issue if the problem still occurs with a newer version v1.3.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants