Release v3@alpha.12 — GraphQL, Rich Text Editor & Redesigned Dashboard 🎉

🚀 GraphQL

query {  
posts {
title
content
}
}
// Post.js
module.exports = {

find: async (ctx) => {
return strapi.services.post.fetchAll(ctx.query);
},

...
}

Usage

strapi install graphql

Configurations

{
"endpoint": "/graphql",
"shadowCRUD": true
}

Query API

query {  
user(id: "5aafe871ad624b7380d7a224") {
username
email
}
}
query {  
users {
username
email
}
}
query {  
users(limit: 10, start: 10, sort: "username:asc", where: {
email_contains: "@strapi.io"
}) {
username
email
}
}
query {  
users(where: {
createdAt_gt: "2018-03-19 16:21:07.161Z"
}) {
username
email
}
}

Shadow CRUD

{
"connection": "default",
"options": {
"timestamps": true
},
"attributes": {
"title": {
"type": "string"
}
"content": {
"type": "text"
},
"published": {
"type": "boolean"
}
}
}
type Post {  
_id: String
created_at: String
updated_at: String
title: String
content: String
published: Boolean
}

type Query {
posts(sort: String, limit: Int, start: Int, where: JSON): [Post]
post(id: String!): Post
}

Go further

🚀 Rich Text Editor

🚀 New Dashboard Design

Improvements

Give it a try!

$ npm i strapi@alpha -g
$ strapi -v
$ strapi new my-app
$ cd my-app 
$ strapi start

What is coming next?

The open source Headless CMS Front-End Developers love.

Strapi is the leading open-source headless CMS. It’s 100% Javascript, fully customizable and developer-first. Unleash your content with Strapi.