Skip to content

pauloamgomes/CockpitQL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Via Cockpit CLI (Cockpit 0.9.1 or greater):

./cp install/addon --name CockpitQL

Manually:

  • download the repository;
  • add it as a subfolder to the ./addons directory.

Either way, the final tree should look as follows:

user@pc:/path/to/cockpit/folder$ tree -d -L 2 -n
.
├── addons
│   └── CockpitQL
...

Api

GraphQL entry point:

/api/graphql/query?token=*apitoken*

Example query:

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

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

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

💐 SPONSORED BY

ginetta
We create websites and apps that click with users.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.9%
  • Hack 0.1%