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

Support raw json fields #14

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Support raw json fields #14

merged 1 commit into from
Sep 21, 2021

Conversation

kwapik
Copy link

@kwapik kwapik commented Sep 9, 2021

This is a port of @cameronbrunner fix to the original repo. See shurcooL#41
It also contains fixes to quest_test.go

@kwapik
Copy link
Author

kwapik commented Sep 9, 2021

@hgiasac PTAL, I'd be very grateful to have this accepted.

query_test.go Outdated Show resolved Hide resolved
@hgiasac
Copy link

hgiasac commented Sep 10, 2021

LGTM. Let's solve @bclermont comments, then we can merge this

@kwapik
Copy link
Author

kwapik commented Sep 21, 2021

@hgiasac @bclermont sorry, I missed your review. Will fix this today or tomorrow.

@kwapik
Copy link
Author

kwapik commented Sep 21, 2021

Made changes. Unfortunately I can't re-request review. @bclermont @hgiasac

By specifing json.RawMessage as a field type in a query raw
json fields can be queried and returned.

This is a copy of
cameronbrunner@415210cccf58be084de7233cac65d8732ac99216V
@kwapik
Copy link
Author

kwapik commented Sep 21, 2021

Also needed to adjust error message to meet #8 requirements.

Copy link

@hgiasac hgiasac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hgiasac hgiasac merged commit 19bbf72 into hasura:master Sep 21, 2021
@kwapik kwapik deleted the support_raw_json_fields branch September 22, 2021 06:12
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

Successfully merging this pull request may close these issues.

3 participants