is there a way to rename subgraphs? when I do this...
# ask-community
c
is there a way to rename subgraphs? when I do this, the
resync
graph contains nodes named
compose_queries
,
compose_queries_2
, etc
Copy code
@graph
def execute_query(dynamic_query):
    # trunk-ignore(flake8/F841)
    data = extract(dynamic_query=dynamic_query)


@graph
def resync():
    # log
    dynamic_query = compose_queries()
    dynamic_query.map(execute_query)

    # attendance
    dynamic_query = compose_queries()
    dynamic_query.map(execute_query)

    # storedgrades
    dynamic_query = compose_queries()
    dynamic_query.map(execute_query)

    # pgfinalgrades
    dynamic_query = compose_queries()
    dynamic_query.map(execute_query)

    # assignmentscore
    dynamic_query = compose_queries()
    dynamic_query.map(execute_query)
can I define those names on my own?
o
i believe
compose_queries()
->
compose_queries.alias("my_name")()
should work 🙂
c
awesome, i'll try that