0xPlaygrounds / 0xPlaygrounds/subgrounds
How can one filter a column by condition NOT NULL
- Lenguaje dominante
- Python
- Estrellas
- 73
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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.
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- graphql, python
- Área
- api, documentation
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 40/100