API Query | AND statement

How to use “and” statement to combine two different conditions e.g.

date_lt: x
tvl_gt: 10000 ?

In general, have problems with aggregation functions in graphQL, so if there are any relevant docs I would appreciate it.

Hi! This is probably a better question for Discord in #subgraph-development, but you should be able to pass both of those statements as part of the where e.g.
where: {date_lt: x, tvl_gt: 10000}
Subgraph graphQL does not currently support aggregation functions, but it is an area of active research!

1 Like

Thanks a lot, Adam! Wasn’t sure where is the best place to ask the question, next time will do it at Discord

1 Like