umbraco-community / umbraco-graphql

An implementation of GraphQL for Umbraco 8 using GraphQL for .NET.
MIT License
64 stars 32 forks source link

Nested published content data (issue#2) #15

Closed JackPenney closed 6 years ago

JackPenney commented 6 years ago

Nesting the base fields on IPublishedContent under _contentData to prevent it clashing with user created doctype aliases

This would change the current format from

{
  content(id:1123) {
    ...on Blogpost {
      pageTitle
      excerpt
      categories
      id
      createDate
      creatorName
      name
    }
  }
}

to

{
  content(id:1123) {
    ...on Blogpost {
      pageTitle
      excerpt
      categories
      _contentData {
        id
        createDate
    creatorName
        name
        }
    }
  }
}