Canner / WrenAI

🚀 Open-source SQL AI Agent for Text-to-SQL. Make Text2SQL Easy! 🙌
https://getwren.ai/oss
GNU Affero General Public License v3.0
1.73k stars 155 forks source link

Chore(wren-ui): update getMDL API #425

Closed onlyjackfrost closed 3 months ago

onlyjackfrost commented 3 months ago

Change getMDL API from mutation to query and adjust input variable

request

(POST)/api/graphql

{
    "query": "query GetMDL($hash: String!) { getMDL(hash: $hash){ hash mdl} }",
    "variables":{
        "hash": "test"   
    }
}