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

Accessing an queried field should throw an exception #1

Open
dylanahsmith opened this issue Feb 1, 2017 · 0 comments
Open

Accessing an queried field should throw an exception #1

dylanahsmith opened this issue Feb 1, 2017 · 0 comments

Comments

@dylanahsmith
Copy link
Contributor

Because we create response classes for any query, we can't catch this bug at compile time. The next best thing is to detect this and throw an exception so that it is more likely to be caught quickly during testing.

We would like to be able to write some common code that takes values from a response object and sets them on an input object, which will need a way to detect if a field has been set. This could be done by having a has field method.

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

1 participant