-
Notifications
You must be signed in to change notification settings - Fork 9
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
How can one filter a column by condition NOT NULL #50
Comments
Hey thanks for the report here, I'll def. add an example for this use-case to our docs. Do you mind sharing the specific subgraph here for context? |
I actually figured out that one can write For reference, the subgraph is https://api.thegraph.com/subgraphs/name/protofire/omen-xdai/graphql |
Glad you figured it out! I'll look towards adding a FAQ for this to try to help future devs. |
Correction - the IS NOT NULL filter_condition I mentioned earlier does not work, see screenshot below where_stms.append(fpmm.resolutionTimestamp is not None) SUBGRAPH_URL = https://api.thegraph.com/subgraphs/name/protofire/omen-xdai/graphql They get defined as True or False statements, hence not valid. |
Thanks so much for improving Subgrounds and creating a PR. I apologize for the delay in the response, but I'm looking to dive into this and quickly get it merged next week! Also, LMK if you had any issues with the CONTRIBUTING.md guide, I'm always looking for feedback to make it clearer and easier for newcomers to contribute! |
Describe the bug
It's not clear from the documentation how one can filter the subgraph results by a column which should not be NULL.
To Reproduce
My (incorrect) query:
Expected behavior
I would expect an example to be found in the documentation.
The text was updated successfully, but these errors were encountered: