agentejo / Cockpitql
GraphQL addon for Cockpit CMS - https://github.com/agentejo/cockpit
Stars: ✭ 65
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:
[email protected]:/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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].