/CockpitQL

GraphQL addon for Cockpit CMS - https://github.com/agentejo/cockpit

Primary LanguagePHP

Api

GraphQL entry point:

/api/graphql?token=*apitoken*

Example query:

{
  region(name:"test"),
  collection(name:"posts", filter:{published:true})
}

Assume we have a collection named posts, you can also query like this

{
  allPosts(filter:{published:true}){
    _id,
    title
    content,
    image{
      path
    }
  }
}

💐 SPONSORED BY

ginetta
We create websites and apps that click with users.