title: How to Select All Documents of a Type in RavenDB
body: <p>So far, I've tried the following:</p>
  
  <pre><code>public class Widget
  {
      public int Id;
      public string Name;
  }
  
  public static class Main
  {
      public static void Main()
      {
          // Initialize store and preload with widgets...
  
          using (var session = store.OpenSession())
          {
              var widgets = session.Load&lt;Widget&gt;();
              foreach(var widget in widgets)
              {
                  Console.WriteLine(widget.Name);
              }
          }
      }
  }
  </code></pre>
  
  <p>I have been able to load all by adding an index and then using that index as a query:</p>
  
  <pre><code>var store = new DocumentStore();
  store.DatabaseCommands.PutIndex("AllWidgets", new IndexDefinition&lt;Widget&gt;
  {
      Map = widget =&gt; from widget in widgets
                     select new { widget }
  });
  
  // Back in Main
  var widgets = session.Query&lt;Widget&gt;("AllWidgets");
  // Do stuff with widgets.
  </code></pre>
  
  <p>Is there a way to just get all documents of type <code>Widget</code> without having to create an index?</p>
  
  <p>At this point I'm just playing with RavenDB in a sandbox environment. I realize that this is usually not the best approach to fetching data.</p>