import re
from typing import Optional



class QuaryData:
    def __init__(self, tag):
        self.tag = tag
        self.username: Optional[str] = None
        


def kvs_query_data():
    return {
        "query": """
query ($id: String!){
  place(id: $id) {
    results {
      
      members {
        id
        parent_id
        user {
          username
        }
      }
    }
  }
}   
""".strip(),
    }   

def kvs_query_data_place_id():
    return {
            "variables": {
                "id": "6915dc03462d5aea0adc8cbd"
            }
        }
def query_data():
    return {
        "query": """
query ($id: String!) {
  place(id: $id) {
    results {
      id
      name
      place_type
    }
  }
}
""".strip()
    }
def query_data_place_id_variables():
    return {
        "variables": {
            "id": "682b071a163ac2a0995355be"
        }
    }