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

babel-relay-plugin: disallow before/first after/last; inline actual errors #252

Closed

Conversation

josephsavona
Copy link
Contributor

Makes the use of field(before: .., first: ..) or after/last an error. This combination is only supported when generated by Relay during the diffing process.

Also, the previous version replaced invalid GraphQL templates with a function that throws - while I was at it, I changed this to include the actual validation error message.

Addresses #247

@josephsavona josephsavona force-pushed the warnbeforeandaftercalls branch from 7255b2d to 5a8aab9 Compare September 7, 2015 19:29
@josephsavona
Copy link
Contributor Author

cc @steveluscher re. the more informative error messages

josephsavona added a commit that referenced this pull request Sep 18, 2015
…rrors

Summary: Makes the use of `field(before: .., first: ..)` or after/last an error. This combination is only supported when generated by Relay during the diffing process.

Also, the previous version replaced invalid GraphQL templates with a function that throws - while I was at it, I changed this to include the actual validation error message.

Addresses #247
Closes #252

Reviewed By: @yuzhi

Differential Revision: D2419715
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