Skip to content

How can one filter a column by condition NOT NULL #50

@gabrielfior

Description

@gabrielfior

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:

latest_markets = subgraph.Query.fixedProductMarketMakers(
        orderBy=subgraph.FixedProductMarketMaker.creationTimestamp,
        orderDirection="desc",
        first=2,
        where=[str(subgraph.FixedProductMarketMaker.resolutionTimestamp) != "null"], # problem here
    )

Expected behavior
I would expect an example to be found in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions