Michael Schmid - CTO
Brandon Williams - Developer
React
Apollo
Redux
Drupal
GraphQL
Hint: SWAPI REST vs SWAPI GraphQL
ProNoobtips
{
nodeQuery(title:"Test article") {
nid
status
renderedOutput
uid {
entity {
uid
name
}
}
}
}
{
"data": {
"nodeQuery": [{
"nid": 1,
"title": "Test article",
"status": true,
"renderedOutput": "<article class=\"node node--type-article..."
"uid": {
"entity": {
"uid": 1,
"name": "admin"
}
}
}]
}
}
{
root {
nodeById(id:1) {
entityId
entityType {
Label
}
}
}
}
{
"data": {
"root": {
"nodeById": {
"entityId": "1",
"entityType": {
"label": "Content"
}
}
}
}
}
I’ve been using GraphQL for <24 hours, and I have a functioning Drupal, GraphQL, React app!
React: Frontend Library
Apollo: GraphQL Client
Redux: Predictable state container
SEO! Accessibility!
Hint: prod site isomorphic
Performance!
Hint: prod site map & footer
https://github.com/fubhy/drupal-decoupled-app
Hint: local decoupled app