I registered the Collection model as a snippet, using register_snippet(Collection) function from wagtail.snippets.models, but the model instances are not returned when I query snippets
{
snippets {
__typename
}
}
Any idea how I could return collections alongside other snippets defined in my models ?
I am trying to query Wagtail Collections from graphql.
I registered the
Collection
model as a snippet, usingregister_snippet(Collection)
function fromwagtail.snippets.models
, but the model instances are not returned when I query snippetsAny idea how I could return collections alongside other snippets defined in my models ?