JimMyersTech2023-07-24 10:26 PM
    -- Playgrounds 🤝 Flipside LiveQuery Function Guide
    -------------------------------------------------------------------------
    -- The Playgrounds LiveQuery integration enables you to query
    -- Playgrounds's proxy to The Graph directly in SQL. This brings the
    -- power of The Graph to Flipside!

    -- -----------------------------------------------------------------
    -- 🚨 WARNING 🚨
    -- To run these examples you must associate your Playgrounds API Key
    -- with your Flipside Account here:
    -- https://flipsidecrypto.xyz/marketplace/playgrounds

    -- ======================================================================
    --
    -- ⚡️ Playgrounds Functions
    -- schema: `playgrounds`
    -- function docs: https://gateway.credmark.com/api/
    --
    -- ======================================================================

    --
    -- #️⃣ playgrounds.query_subgraph(<subgraph_id>, {query: <query>, variables: <variables})
    --
    -- (https://gateway.credmark.com/api/#/Token%20API)
    SELECT
    playgrounds.query_subgraph(
    'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7',
    {
    'query': '{protocols {id}}',
    'variables': '{}'
    }
    )

    Run a query to Download Data