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

printRelayQuery returns {text,variables} - (OSS version) #169

Closed

Conversation

josephsavona
Copy link
Contributor

Changes babel-relay-plugin to output the type names for complex (non-scalar) types, and updates the OSS variant of printRelayQuery to return {text,variables} instead of only the query text. This corresponds to the change in b5c1512.

An example of the output is as follows:

{
  text: `
    query UnknownFile($0:SearchInput) {
      search(query:$0) {
        ...
      }
    }
  `,
  variables: {
    0: {q: 'foo'},
  },
}

@josephsavona
Copy link
Contributor Author

I'll split the babel plugin and src/ changes into separate PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants