def METHOD_NAME(
    user_api_client, order_with_lines_and_events, count_queries
):
    query = (
        FRAGMENT_ORDER_DETAILS
        + """
          query OrderByToken($token: UUID!) {
            orderByToken(token: $token) {
              ...OrderDetail
            }
          }
        """
    )
    variables = {
        "token": order_with_lines_and_events.id,
    }
    get_graphql_content(user_api_client.post_graphql(query, variables))