Closed rasmusjp closed 6 years ago
So to use this you would need a query like so?
{ UmbracoQuery { ContentByType { People { name, avatar } } } }
Have I read that right?
Not quite. The query ends up like this:
{
content {
byType {
People(id: 1234) {
name
avatar
}
}
}
}
with the changes in bd656a8d I've moved contentById
and contentAtRoot
to content
so the queries will look like
{
content {
byId(id: 1234) {
_contentData {
name
}
}
atRoot {
all {
_contentData {
name
}
}
People {
avatar
}
}
}
}
One thing I'm not sure about is if we should rename content
to publishedContent
.
Ohhh I like that, that reads much nicer. I approve :)
Right now the "content queries" are directly on the root query:
To avoid cluttering the root type (e.g. if we want to implement #3, #8 and dictionary in #9), and make the data more discoverable I think we should move them to sub types.
I think something the types below will make the data more discoverable and make it easier to add new "query objects" to the root query without it being to cluttered
Maybe even adding a
ContentAtRootQuery
with all the types that's allow at root