My Schema.graphql of Relay, this is the structure I'm trying to achieve,

```
type Root {
  viewer: Viewer
}

type Viewer {
  categories(id: ID): Category
  subCategories(CategoryId: ID!) : [SubCategory]
  items(SubCategoryId: ID): Item
  shopItems(ShopId: ID, SubCategoryId:ID): Item
}

```

Now the server, my viewer.js looks like this,

```
const Viewer = new GraphQLObjectType({
  name: 'viewer',
  fields: {
    categories,
    subCategories,
    Items,
    shopItems,
  },
});

```

and the root is,

```
const RootQuery = new GraphQLObjectType({
  name: 'query',
  fields: {
    viewer: {
      type: Viewer,
    },
  },
});

```

It is giving me the structure I want, but I cannot resolve anything from rootQuery, viewer simply returns null because I'm not resolving the viewer type in rootQuery. Any ideas how to implement this Relay spec structure properly? Thanks guys