This function will return all users instead of the giving username, how could I make it right? And any better GraphQL client for Python? gql just so simple that no much documents could check.
def fetch_user(username):
query = gql("""
query getUser($username: String) {
user(
where: { name: { _eq: $username } }
) {
id
name
}
}
""")
result = client.execute(query)