0xPlaygrounds / 0xPlaygrounds/subgrounds
How can one filter a column by condition NOT NULL
- Vorherrschende Sprache
- Python
- Sterne
- 73
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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.
Beitragsleitfaden
Rechercherichtung
Look at the subgrounds documentation and code for filtering examples, particularly in the query builder. Check how GraphQL filters are constructed in the library. The goal is to add a clear example of a NOT NULL filter to the docs, showing the correct syntax.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql, python
- Bereich
- api, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 40/100