Test user affiliates details API
Create a graphql query executor wrapper
current_user = Sanbase.Accounts.get_user!(1)
query = """
{
currentUser {
areUserAffiliateDatailsSubmitted
}
}
"""
Sanbase.DevUtils.GraphQLQueryExecutor.execute_query(query, current_user)
mutation = """
mutation {
addUserAffiliateDetails(telegramHandle: "@exampleHandle", marketingChannels: "test133")
}
"""
Sanbase.DevUtils.GraphQLQueryExecutor.execute_query(mutation, current_user)