Skip to content

Problems with filter in graphql playground #1262

Answered by ra0x3
chlenc asked this question in Q&A
Discussion options

You must be logged in to vote

@chlenc

  • Let me clarify, the functionality works, I gave you a bad example query - try this:
curl -X POST https://spark-indexer.spark-defi.com/api/sql/swaygang/spark_indexer \
  -d '{"query":"select json_agg(t) from (select * from swaygang_spark_indexer.orderentity) t;"}' \
  -H "Content-type: application/json"

Response:

{
   "data" : [
      [
         {
            "amount0" : 1000000000,
            "amount1" : 300000000000,
            "asset0" : "17e68049bb3cf21a85f00778fde367465bbd8263e8d4f8e47e533fe0df865658",
            "asset1" : "eaa756f320f175f0023a8c9fc2c9b7a03ce8d715f04ac49aba69d2b7d74e70b8",
            "fulfilled0" : 0,
            "fulfilled1" : 0,
            "id" : 1,
…

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ra0x3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1254 on August 11, 2023 17:01.