1
00:00:00,300 --> 00:00:03,900
This episode we sit down with 
Jason Ball and getting graphical

2
00:00:04,200 --> 00:00:08,000
with WordPress. 
Jason is the creator maintainer 

3
00:00:08,000 --> 00:00:11,700
of WP graphql. 
We get to talk all about graphql

4
00:00:11,700 --> 00:00:15,500
and how we can use WordPress as 
a headless CMS. 

5
00:00:15,700 --> 00:00:18,600
Check it out. 
Welcome back piece to perfect 

6
00:00:18,600 --> 00:00:22,400
out there, where we give you 
cats, freshest dose of devs 

7
00:00:22,400 --> 00:00:24,800
snacks now with your amazing 
hosts. 

8
00:00:24,800 --> 00:00:27,300
Alex, Patterson, and Brittany 
post. 

9
00:00:27,800 --> 00:00:29,900
This episode is sponsored by 
Builder IO. 

10
00:00:30,100 --> 00:00:32,800
Visually build on your Tech 
stack. 

11
00:00:32,900 --> 00:00:36,300
Jason? 
Balled up, Jason, welcomes gone.

12
00:00:37,100 --> 00:00:39,200
Yeah. 
Thanks for having me almost, 

13
00:00:39,200 --> 00:00:41,500
stumbled are entitled with the 
whole graph e. 

14
00:00:41,500 --> 00:00:44,500
Ql those. 
Those pretty clever, radical 

15
00:00:45,000 --> 00:00:49,000
graphical. 
So Jason is the Creator and 

16
00:00:49,000 --> 00:00:55,100
maintainer of WP graphql which 
is a WordPress plugin that 

17
00:00:55,200 --> 00:01:00,000
allows for a headless work. 
Plus WordPress rest endpoints of

18
00:01:00,000 --> 00:01:03,100
graphql. 
Is that a terrible way to say 

19
00:01:03,100 --> 00:01:03,900
it? 
I hope not. 

20
00:01:03,900 --> 00:01:05,700
So I'm going to let Jason talk. 
Yeah. 

21
00:01:05,800 --> 00:01:08,300
All about Jason. 
Can you tell us just a little 

22
00:01:08,300 --> 00:01:11,000
bit of your background and how 
you kind of got into the 

23
00:01:11,000 --> 00:01:16,200
WordPress world and have in 
wanted to create this plugin for

24
00:01:17,200 --> 00:01:19,600
Yeah, sure. 
Um, I've been doing WordPress 

25
00:01:19,600 --> 00:01:24,700
development for what 13 or so 
years now. 

26
00:01:26,300 --> 00:01:29,600
So yeah, I've been been. 
Yeah, very familiar with 

27
00:01:29,600 --> 00:01:35,000
WordPress and how folks use it 
and then I was working for a 

28
00:01:35,008 --> 00:01:38,800
newspaper organization. 
We had a hundred and something 

29
00:01:38,800 --> 00:01:42,200
newspapers across the u.s., and 
we did a lot of confidence 

30
00:01:42,200 --> 00:01:46,700
indication, so when when one 
newspaper for example, I'm in 

31
00:01:46,700 --> 00:01:51,000
Denver. 
As you might have noticed, when,

32
00:01:51,000 --> 00:01:52,800
when The Denver Post, for 
example, that was one of our 

33
00:01:52,800 --> 00:01:54,800
newspapers. 
When they publish article, you 

34
00:01:54,800 --> 00:01:58,400
know, them Rocco's win, the 
Super Bowl that might need to 

35
00:01:58,400 --> 00:02:02,000
get published on multiple 
newspapers across the country 

36
00:02:02,300 --> 00:02:05,100
that we also run. 
And instead of having somebody 

37
00:02:05,100 --> 00:02:08,400
log into each one and you know, 
publish it, we would automate 

38
00:02:08,400 --> 00:02:09,100
that. 
Right? 

39
00:02:09,100 --> 00:02:14,500
So data would move from one site
to another site and so we were 

40
00:02:14,500 --> 00:02:18,000
moving a lot of data, we were 
using the word Is rest API to do

41
00:02:18,000 --> 00:02:20,900
a lot of this movement of data 
to communicate over the network,

42
00:02:20,900 --> 00:02:25,200
with with each other. 
And that was as we scaled we 

43
00:02:25,200 --> 00:02:27,800
were on WordPress for these 
newspaper sites. 

44
00:02:28,700 --> 00:02:31,700
We started with one newspaper, 
what on WordPress, then two, 

45
00:02:31,900 --> 00:02:35,000
then three and then 54, we're on
WordPress. 

46
00:02:36,300 --> 00:02:41,700
And as we scaled that process of
syndicating data, it became 

47
00:02:41,700 --> 00:02:45,200
problematic for us. 
One the network. 

48
00:02:45,200 --> 00:02:47,400
The actual Network responses 
were Anak. 

49
00:02:48,900 --> 00:02:53,300
Because when when you're dealing
with a restful API, each 

50
00:02:53,300 --> 00:02:55,300
resource is a different end 
points. 

51
00:02:55,500 --> 00:02:58,600
And when your syndicating think 
of a newspaper article, when 

52
00:02:58,600 --> 00:03:01,800
you're syndicating in newspaper 
article, there's actual article 

53
00:03:01,800 --> 00:03:04,100
itself. 
But then there's the author that

54
00:03:04,100 --> 00:03:06,200
wrote it. 
There's the categories and the 

55
00:03:06,200 --> 00:03:07,800
tags that are associated with 
it. 

56
00:03:07,800 --> 00:03:09,700
All of those are different 
entities. 

57
00:03:10,600 --> 00:03:13,700
Then you have images that are 
associated with it, so the simce

58
00:03:13,700 --> 00:03:19,000
one article, you're actually 
moving A lot of resources to get

59
00:03:19,000 --> 00:03:23,100
the job done. 
And and so the two problems, 

60
00:03:23,100 --> 00:03:25,300
there was actual Network 
performance issues that were 

61
00:03:25,300 --> 00:03:30,600
Cosmos issues, especially when 
you had to do it to 54 sites or 

62
00:03:30,600 --> 00:03:34,800
you know, any subset of that 
amount I can browse causes 

63
00:03:34,800 --> 00:03:38,700
problems is that cost? 
So like wide area network or 

64
00:03:38,700 --> 00:03:43,500
like internet or what? 
Well yeah actually yeah we were 

65
00:03:43,500 --> 00:03:49,100
using HTTP so it was just 
Websites talking to websites, 

66
00:03:50,000 --> 00:03:51,700
okay? 
And they partly. 

67
00:03:51,700 --> 00:03:55,400
They, the websites were operated
independently, like we had 

68
00:03:55,800 --> 00:03:58,600
access to them, but some 
newspapers would get Acquired 

69
00:03:58,600 --> 00:04:02,400
and we'd have to divest it and 
like it had largely operate 

70
00:04:02,400 --> 00:04:04,600
independently. 
So, they weren't like one 

71
00:04:04,700 --> 00:04:08,800
cohesive thing. 
But anyway, yes, we were, we 

72
00:04:08,800 --> 00:04:13,100
were sending this data cause 
actual network problems, but 

73
00:04:13,100 --> 00:04:16,000
more than that of cause 
developer performance problems, 

74
00:04:16,000 --> 00:04:20,500
I would call Because when 
something went wrong, right? 

75
00:04:20,500 --> 00:04:25,600
Is very difficult to figure out 
where the thing that went wrong 

76
00:04:25,600 --> 00:04:28,200
went wrong. 
And part of that is rest 

77
00:04:28,200 --> 00:04:33,400
restful, apis are implicit where
you have an endpoint, and you 

78
00:04:33,400 --> 00:04:37,100
get, whatever the server tells 
you, you're going to get you as 

79
00:04:37,100 --> 00:04:41,800
the developer have limited 
control over over. 

80
00:04:41,800 --> 00:04:43,600
What then point is going to give
you. 

81
00:04:44,300 --> 00:04:46,300
And so that was often 
problematic something on the 

82
00:04:46,308 --> 00:04:49,500
server, which Ange, we weren't 
prepared for that change 

83
00:04:50,100 --> 00:04:52,700
something broke. 
It was difficult to figure out. 

84
00:04:53,000 --> 00:04:54,500
What y who what went? 
You know? 

85
00:04:55,200 --> 00:04:56,800
Some cop, it caused us a lot of 
headaches. 

86
00:04:56,900 --> 00:05:00,800
Um and so we were we were kind 
of rethinking like okay how can 

87
00:05:00,800 --> 00:05:04,900
we make this? 
Make our jobs easier and graphql

88
00:05:04,900 --> 00:05:07,400
was open source in 2015 by 
Facebook. 

89
00:05:07,900 --> 00:05:11,500
I did some research into it. 
I said hey this might solve, I 

90
00:05:11,500 --> 00:05:14,100
was less concerned about the 
network issue problems. 

91
00:05:14,100 --> 00:05:16,700
Like we had Solutions we could 
have done to fix. 

92
00:05:16,900 --> 00:05:19,800
Some of those things, I was more
concerned about our developer 

93
00:05:19,800 --> 00:05:22,700
workflows. 
And so this graph kill thing, 

94
00:05:23,000 --> 00:05:28,400
looked interesting where you can
do multiple resources individual

95
00:05:28,400 --> 00:05:31,300
requests. 
So I started looking into this 

96
00:05:31,300 --> 00:05:37,000
technology and and prototyped it
at home and then showed some of 

97
00:05:37,000 --> 00:05:40,400
my co-workers took a little 
while to get some buy-in. 

98
00:05:40,400 --> 00:05:44,100
And but finally, you know, I was
able to say, hey I think I think

99
00:05:44,100 --> 00:05:46,700
we can actually solve somewhere 
issues with this, so got bye. 

100
00:05:46,900 --> 00:05:50,500
From from co-workers, we started
working on revamping our 

101
00:05:50,900 --> 00:05:55,000
syndication, which is not like 
the first thought people have, 

102
00:05:55,000 --> 00:05:59,100
when they think of graphql, but 
we started revamping that 

103
00:05:59,100 --> 00:06:03,300
platform to use graphql, 
specifically mutations, which is

104
00:06:03,400 --> 00:06:06,300
actually writing data, instead 
of acquiring data. 

105
00:06:08,000 --> 00:06:11,800
And so part of it, part of it, 
give us like better guarantees 

106
00:06:11,800 --> 00:06:15,200
on the validation we were doing 
just a better way to structure. 

107
00:06:15,200 --> 00:06:22,100
Our Code, to easier to look at a
graph to a query and mutation 

108
00:06:22,100 --> 00:06:26,500
and see what, what the intent 
was when whoever wrote the code 

109
00:06:26,500 --> 00:06:29,200
wrote it, because we get say, 
oh, they wanted these exact 

110
00:06:29,200 --> 00:06:31,500
Fields. 
So if that never breaks, we at 

111
00:06:31,500 --> 00:06:33,800
least knew what they were trying
to do at that time. 

112
00:06:34,200 --> 00:06:36,700
We're with rest, you look at men
pointing you're like ah crud, I 

113
00:06:36,700 --> 00:06:38,900
don't really know what that 
person was trying to do with 

114
00:06:38,900 --> 00:06:40,900
that endpoint. 
So you got to spend a lot of 

115
00:06:40,907 --> 00:06:44,500
time digging through and figure 
out what, what they were trying 

116
00:06:44,500 --> 00:06:48,900
to do. 
Work grab kills for So yes, we 

117
00:06:48,900 --> 00:06:50,500
got to work in with the 
newspaper. 

118
00:06:51,100 --> 00:06:54,300
I continued working on it just 
as open-source project on my own

119
00:06:54,300 --> 00:06:59,700
time knowing that content 
syndication was probably not 

120
00:06:59,700 --> 00:07:02,600
going to be like the big reason 
people would use it. 

121
00:07:02,800 --> 00:07:04,400
JavaScript, runtimes, probably 
would be. 

122
00:07:05,300 --> 00:07:09,300
And so, I kept working on other 
use cases that I thought would 

123
00:07:09,400 --> 00:07:13,300
Bridge the WordPress world with 
the graphql world for a larger 

124
00:07:13,300 --> 00:07:17,300
audience and then in what Is it 
20? 

125
00:07:17,500 --> 00:07:19,600
I don't even remember time last 
few years. 

126
00:07:19,600 --> 00:07:23,200
A couple years ago, I got picked
up by Gatsby Gatsby, reached out

127
00:07:23,300 --> 00:07:25,700
against it, which is a 
JavaScript framework for 

128
00:07:25,700 --> 00:07:28,500
building, blazing-fast react 
apps. 

129
00:07:29,800 --> 00:07:33,300
They reached out to me today. 
We really liked this project, we

130
00:07:33,300 --> 00:07:36,000
have a lot of audience that 
wants to use WordPress, has CMS 

131
00:07:36,000 --> 00:07:40,100
and Gatsby is the front end. 
You want to work on this whole 

132
00:07:40,100 --> 00:07:43,600
time. 
So I joined them for what was it

133
00:07:43,608 --> 00:07:46,100
about a year and a half? 
Then some priorities. 

134
00:07:46,300 --> 00:07:49,200
Change there. 
And then some now my WP engine 

135
00:07:50,300 --> 00:07:54,200
which is WordPress host and 
they're employing me to continue

136
00:07:54,200 --> 00:07:56,100
the project. 
Oh wow. 

137
00:07:56,100 --> 00:07:58,900
So you get to work full-time on 
the project at w. 

138
00:08:00,400 --> 00:08:02,700
Yeah. 
Wow that's really and I was 

139
00:08:03,900 --> 00:08:05,600
pretty much full-time wanted to 
Gatsby's. 

140
00:08:05,600 --> 00:08:08,200
Well there's some like Gatsby 
plugins and stuff. 

141
00:08:08,200 --> 00:08:12,200
I was working on as well but it 
was all focused around bridging 

142
00:08:13,200 --> 00:08:15,800
headless WordPress with. 
That's me sure. 

143
00:08:16,200 --> 00:08:18,400
That's awesome. 
Well, cool. 

144
00:08:18,400 --> 00:08:22,700
So I know at one point and I had
spent a minute since I touched 

145
00:08:22,700 --> 00:08:26,100
WordPress. 
There is a rest API 

146
00:08:26,100 --> 00:08:29,100
out-of-the-box forward breasts, 
correct? 

147
00:08:30,000 --> 00:08:31,000
Correct? 
Yes. 

148
00:08:31,100 --> 00:08:35,799
Okay. 
Is there any intention by 

149
00:08:35,799 --> 00:08:40,100
WordPress to also include maybe 
this as a standard 

150
00:08:40,100 --> 00:08:42,900
implementation? 
Yeah. 

151
00:08:43,000 --> 00:08:46,100
Are there hasn't been too? 
Might not at least including me.

152
00:08:46,100 --> 00:08:49,000
There hasn't been any official 
conversation about that. 

153
00:08:49,200 --> 00:08:51,900
Okay? 
There has been on the fish 

154
00:08:51,900 --> 00:08:57,200
conversations about it with her 
life and in my. 

155
00:08:57,300 --> 00:09:00,800
So it's interesting there, 
there's a lot of value that 

156
00:09:00,800 --> 00:09:07,000
graph kill brings to especially 
developers, and it would be cool

157
00:09:07,000 --> 00:09:10,700
to have it in in WordPress core 
because we're press Corps as of 

158
00:09:10,900 --> 00:09:15,200
like this week is for WordPress 
is 43% of the web right now so 

159
00:09:15,400 --> 00:09:18,900
it's everywhere. 
So having access to this 

160
00:09:18,900 --> 00:09:24,400
technology everywhere would be 
would be nice on the flip side. 

161
00:09:25,500 --> 00:09:28,900
When something is merged into 
WordPress core because it 

162
00:09:28,900 --> 00:09:33,300
impacts 43% of the web things, 
don't change often. 

163
00:09:34,200 --> 00:09:38,300
And so like, for example, there,
the rest API was merged and I 

164
00:09:38,300 --> 00:09:41,700
think it was the winter of 2016,
my timeline is correct is 

165
00:09:41,700 --> 00:09:43,900
either. 
Either end of 2015 or 2016, I 

166
00:09:43,908 --> 00:09:48,200
can remember, there's still bugs
in that that have not been 

167
00:09:48,200 --> 00:09:52,400
addressed five years later 
because users have gotten used 

168
00:09:52,400 --> 00:09:57,100
to the bug as a feature, right? 
And if you change it, it could 

169
00:09:57,100 --> 00:10:00,800
break their their application, 
that's using it. 

170
00:10:00,800 --> 00:10:04,200
So that's one. 
One argument is like, okay, 

171
00:10:04,300 --> 00:10:07,600
whatever makes it into core 
stays, right? 

172
00:10:07,600 --> 00:10:11,300
It's like you've kind of agreed 
that this is perfect, right? 

173
00:10:11,800 --> 00:10:14,000
And WordPress admin users, 
login. 

174
00:10:15,200 --> 00:10:18,800
WordPress is versioned but 
there's this in the WordPress 

175
00:10:18,800 --> 00:10:22,300
Community is like you could 
update from WordPress 1.0 which 

176
00:10:22,300 --> 00:10:26,500
is you know 15 years old to 
Wordpress, you know five point 

177
00:10:26,500 --> 00:10:29,900
eight which is right now and 
your site would still work. 

178
00:10:30,500 --> 00:10:34,500
So there's there's very strong 
commitment to backward 

179
00:10:34,500 --> 00:10:39,600
compatibility. 
So which does lead to an often 

180
00:10:39,800 --> 00:10:42,200
cases that leads to poor 
developer experience because 

181
00:10:42,200 --> 00:10:44,700
there's a lot of old stuff in 
there. 

182
00:10:46,500 --> 00:10:49,100
But it leads to Great user 
experience, right? 

183
00:10:49,400 --> 00:10:52,900
I can up, I could go to a site 
that I created for a friend in 

184
00:10:52,900 --> 00:10:57,300
2008 and updated today. 
And there's a very good chance, 

185
00:10:57,300 --> 00:11:01,900
it will still work. 
And so, for users, for users, 

186
00:11:01,900 --> 00:11:04,700
it's an awesome experience for 
developers. 

187
00:11:04,700 --> 00:11:06,200
It's challenging sometimes, 
right? 

188
00:11:07,500 --> 00:11:12,100
And so so yeah, Doug be graphql,
being a being a plug-in allows 

189
00:11:12,100 --> 00:11:14,800
us to iterate and make breaking 
changes. 

190
00:11:14,900 --> 00:11:17,400
Ages and version it in a way 
that you can opt into the 

191
00:11:17,400 --> 00:11:19,100
version that works for your 
project. 

192
00:11:19,300 --> 00:11:21,800
Today's podcast is brought to 
you by Builder. 

193
00:11:21,800 --> 00:11:25,400
IO visually building the web 
Builder iOS, one of the most 

194
00:11:25,400 --> 00:11:27,900
powerful visual editors in the 
industry. 

195
00:11:28,000 --> 00:11:31,500
Unlike other tools and Builder 
actually produces the code for 

196
00:11:31,500 --> 00:11:33,000
you. 
You don't have to completely 

197
00:11:33,000 --> 00:11:34,500
switch out your framework 
either. 

198
00:11:34,500 --> 00:11:37,100
Just use one of the handy sdks 
that are available. 

199
00:11:37,400 --> 00:11:41,000
There's no limits to what you 
can build instead of limiting, 

200
00:11:41,000 --> 00:11:44,100
your marketing team start to 
optimize and let them do the 

201
00:11:44,100 --> 00:11:46,400
work. 
To allow your web developers to 

202
00:11:46,408 --> 00:11:49,500
get back to the hard work that 
it takes for other components. 

203
00:11:50,000 --> 00:11:53,300
Allowing your team to do a/b 
testing, and personalization. 

204
00:11:54,200 --> 00:11:56,500
Stop worrying about bugs and 
production. 

205
00:11:56,900 --> 00:12:00,600
Just use the site as it is, then
you can analyze and start 

206
00:12:00,600 --> 00:12:05,400
converting all of your customers
but Builders built in heatmaps. 

207
00:12:06,200 --> 00:12:09,800
Stop limiting your growth with 
developers long lead times. 

208
00:12:09,800 --> 00:12:14,800
Start building optimizing 
analyzing and start. 

209
00:12:14,900 --> 00:12:18,500
Growing faster don't take my 
word for it. 

210
00:12:18,500 --> 00:12:21,100
You can sign up for free today 
and start building the web 

211
00:12:21,100 --> 00:12:24,800
visually with Builder. 
I owe one other. 

212
00:12:24,800 --> 00:12:29,900
One other thing is that graphql 
is a specification used by many 

213
00:12:29,900 --> 00:12:33,300
systems, right? 
It's not like, it's similar to 

214
00:12:33,300 --> 00:12:36,700
Json, right? 
Json is a specification for a 

215
00:12:36,700 --> 00:12:39,600
data type and it can be used 
everywhere, right? 

216
00:12:39,600 --> 00:12:44,200
And graphql similar is more 
complex than Json, but, but I 

217
00:12:44,208 --> 00:12:46,500
could be used anywhere. 
It's like GitHub, has a graphql 

218
00:12:46,500 --> 00:12:49,600
API Yelp has a graphical API. 
Facebook has, you know, all 

219
00:12:49,600 --> 00:12:52,300
these systems have graphical 
apis and we can use the same 

220
00:12:52,300 --> 00:12:55,400
tools with all of them. 
The graphql specification, 

221
00:12:55,400 --> 00:13:00,200
though, updates over time. 
And if we're to escort to work 

222
00:13:00,200 --> 00:13:03,900
to implement graphql today and 
the graphql specification 

223
00:13:03,900 --> 00:13:07,900
updated tomorrow, then 43% of 
the web would be using an 

224
00:13:07,900 --> 00:13:11,600
outdated version of graphql. 
Of course you could potentially 

225
00:13:11,600 --> 00:13:15,000
have add two versions like 
graphql, one graphical to You 

226
00:13:15,000 --> 00:13:18,400
know, or something like that but
then you're just stacking on 

227
00:13:18,700 --> 00:13:22,300
technical debt as well. 
So those conversations like 

228
00:13:22,300 --> 00:13:25,200
that, that would have to be 
considered deeply. 

229
00:13:25,300 --> 00:13:29,400
I think before putting it out to
43 percent of the web was 

230
00:13:29,500 --> 00:13:30,900
decided. 
Yeah. 

231
00:13:31,300 --> 00:13:31,900
All right. 
Cool. 

232
00:13:32,400 --> 00:13:34,600
That's that's really awesome. 
I know. 

233
00:13:34,600 --> 00:13:37,300
Brittany hasn't worked a lot 
with WordPress. 

234
00:13:37,400 --> 00:13:41,100
I used to it was probably my 
first thing out of college 

235
00:13:41,300 --> 00:13:43,800
essentially. 
Like probably probably more than

236
00:13:43,800 --> 00:13:47,900
those 80% of developers that 
that work on that. 

237
00:13:48,900 --> 00:13:53,400
I think there's always a big 
debate and there's been some 

238
00:13:53,400 --> 00:13:56,900
heated conversations about 
monolithic first, Jam stack and 

239
00:13:56,900 --> 00:14:00,500
all of that fun stuff but 
there's also kind of this 

240
00:14:00,500 --> 00:14:04,900
methodology these days that you 
can spin up a WordPress website 

241
00:14:05,100 --> 00:14:08,700
and use it as a headless CMS. 
And there's a lot of people 

242
00:14:08,700 --> 00:14:12,300
doing that. 
Now we talked a bit about it, 

243
00:14:12,300 --> 00:14:17,600
I'll put a link on the podcast. 
With with Jason back in like 

244
00:14:17,900 --> 00:14:21,400
episode 11 of this season. 
So check that out. 

245
00:14:21,400 --> 00:14:25,700
But I think, well, I'd like to 
do now is kind of transition. 

246
00:14:25,700 --> 00:14:28,400
This part might be a little more
difficult if you're listening on

247
00:14:28,400 --> 00:14:31,000
audio, but we'll try to kind of 
work through this. 

248
00:14:31,000 --> 00:14:35,100
But Jason's gonna show off kind 
of some of the ins and out from 

249
00:14:35,300 --> 00:14:40,300
WP graphql and we'll take a look
at how you can actually like use

250
00:14:40,300 --> 00:14:46,200
it as a headless EMS essential. 
Yeah, yeah. 

251
00:14:46,200 --> 00:14:51,600
So I've got my screen shared 
here and basically what we're 

252
00:14:51,600 --> 00:14:55,400
looking at here is just the 
regular old WordPress site. 

253
00:14:56,200 --> 00:14:59,900
I just imported some dummy 
content here so we can, we can 

254
00:14:59,900 --> 00:15:02,600
click around this just normal 
WordPress or ended by PHP. 

255
00:15:02,600 --> 00:15:05,700
So I can click links like 
clicking author and then we can 

256
00:15:05,700 --> 00:15:10,300
see post authored by this 
author, you know, we can click 

257
00:15:10,300 --> 00:15:14,400
recent pose, we can navigate. 
So just My WordPress site. 

258
00:15:15,300 --> 00:15:19,000
And you, if we want to kill 
that, download bar, they will 

259
00:15:19,000 --> 00:15:20,300
steal a little more of the 
screen. 

260
00:15:22,900 --> 00:15:24,200
Oh, yes. 
I'm of the browser. 

261
00:15:24,200 --> 00:15:28,500
We all are. 
Yeah, so we can, this just 

262
00:15:28,500 --> 00:15:30,400
normal were pressed. 
Nothing, headless. 

263
00:15:30,400 --> 00:15:32,800
No graphql. 
Happening at all yet. 

264
00:15:33,800 --> 00:15:36,300
If we I'm going to log into the 
dashboard here. 

265
00:15:36,300 --> 00:15:41,200
So this is WordPress dashboard. 
This is very vanilla install. 

266
00:15:41,700 --> 00:15:44,800
There's zero plugins. 
Activated yet. 

267
00:15:45,800 --> 00:15:47,800
So if you want to get started 
with them, you can graph ql. 

268
00:15:48,300 --> 00:15:51,200
You can log into your WordPress 
install. 

269
00:15:51,300 --> 00:15:56,400
You can click this add new 
button search graph ql, and 

270
00:15:56,400 --> 00:16:01,100
you'll find the this elephant, 
the graphql elephant, as I like 

271
00:16:01,100 --> 00:16:04,300
to call it, I've already 
installed that. 

272
00:16:04,700 --> 00:16:07,900
So, if you haven't installed it,
there would be an install button

273
00:16:08,400 --> 00:16:09,900
for me. 
It's not activate button, so I 

274
00:16:09,900 --> 00:16:13,100
can activate that and I love it.
It's no, we're not. 

275
00:16:14,200 --> 00:16:17,200
Yeah. 
Yeah, I was, I was just a play 

276
00:16:17,200 --> 00:16:18,700
on. 
Words is why I decided like, go 

277
00:16:18,700 --> 00:16:19,500
graphql. 
Elephant. 

278
00:16:19,500 --> 00:16:21,800
That sounds cool. 
That does sound cool. 

279
00:16:22,000 --> 00:16:26,600
I'm an Alabama fan. 
So I like elephants someone 

280
00:16:26,600 --> 00:16:28,300
pointed out like couple of years
later. 

281
00:16:28,300 --> 00:16:30,500
I go I get why you did it 
because PHP is logos and 

282
00:16:30,500 --> 00:16:32,800
elephant. 
I was like, oh I didn't do that 

283
00:16:32,800 --> 00:16:36,000
on purpose but make sense. 
Does it make for me? 

284
00:16:40,100 --> 00:16:42,700
Yeah. 
So that was a yes, a weight when

285
00:16:42,700 --> 00:16:45,900
you activate it. 
But what'll happen is you get 

286
00:16:45,900 --> 00:16:48,800
this graph ql tab here on the 
admin and you also get button 

287
00:16:48,800 --> 00:16:52,500
here. 
And then this this interface 

288
00:16:52,500 --> 00:16:56,500
that I just opened this called 
graphical, so graphql. 

289
00:16:56,500 --> 00:17:01,100
But with and I up here and this 
is it's an IDE for interacting 

290
00:17:01,100 --> 00:17:04,300
with your graphql, schema. 
So when you activate the 

291
00:17:04,308 --> 00:17:08,800
plug-in, what happens, you get 
this idea, you get this view, 

292
00:17:09,300 --> 00:17:13,300
but we can also go in our 
browser to your site /. 

293
00:17:13,400 --> 00:17:18,099
Graphql. 
And you'll have a graph ql and 

294
00:17:18,099 --> 00:17:20,500
point. 
So we'll see here that some Json

295
00:17:20,500 --> 00:17:25,700
is being returned to us instead 
of a HTML page and so we'll be 

296
00:17:25,700 --> 00:17:31,200
able to interact with this and 
point using this IDE. 

297
00:17:31,600 --> 00:17:37,900
And so what what happens, WP 
graphql reads the underlying 

298
00:17:38,300 --> 00:17:41,800
Registries that WordPress has to
Define what types of content can

299
00:17:41,800 --> 00:17:44,700
be managed. 
So with when with, when we're 

300
00:17:44,700 --> 00:17:48,300
press When you really using 
vanilla WordPress, you have 

301
00:17:48,300 --> 00:17:52,300
different types of content, you 
have blog posts, you have media,

302
00:17:52,800 --> 00:17:54,900
right? 
Like images and videos, you have

303
00:17:54,900 --> 00:18:00,300
Pages, you have comments, you 
have themes, you have plugins, 

304
00:18:00,300 --> 00:18:03,500
you have users, and then you 
have settings, right? 

305
00:18:03,500 --> 00:18:06,700
So that's like, you get that out
of the box with any WordPress 

306
00:18:06,700 --> 00:18:10,600
install, and then, obviously, 
you can install plug-ins that 

307
00:18:10,700 --> 00:18:14,500
modify the behavior. 
So, out of the box, what, what 

308
00:18:14,500 --> 00:18:17,400
WP graphical does? 
It reads all this type of 

309
00:18:17,400 --> 00:18:21,400
content and it puts it into a 
graph ql schema, which allows 

310
00:18:21,400 --> 00:18:25,900
you to ask, for whatever data 
you want in response. 

311
00:18:26,300 --> 00:18:30,200
So what I can do that using 
graphical, I can click buttons 

312
00:18:30,200 --> 00:18:34,300
in here to explore the schema. 
So there's queries and 

313
00:18:34,300 --> 00:18:37,400
mutations. 
Queries allows to ask for data 

314
00:18:37,800 --> 00:18:40,800
that mutations, allow us to send
data back to Wordpress. 

315
00:18:42,400 --> 00:18:46,100
And so, I can explore this by 
clicking in, and I can scroll 

316
00:18:46,100 --> 00:18:48,600
down and read things. 
So we can see that their 

317
00:18:48,600 --> 00:18:50,400
settings. 
Like I mentioned, we can get 

318
00:18:50,400 --> 00:18:54,500
settings, we can get categories,
which like, would be post 

319
00:18:54,500 --> 00:19:00,500
categories, we can get comments,
we can get all sorts of stuff, 

320
00:19:00,500 --> 00:19:02,000
if you know what you're looking 
for. 

321
00:19:02,000 --> 00:19:05,500
You can also type in here like 
post and see all the different 

322
00:19:05,500 --> 00:19:08,700
ways of hosts. 
So, to tell you everything 

323
00:19:08,700 --> 00:19:12,100
that's available at that end 
point, Yep. 

324
00:19:12,100 --> 00:19:15,900
And so there's a there's a lot 
of a lot of stuff going on here.

325
00:19:16,200 --> 00:19:19,600
My favorite. 
My favorite way to do this. 

326
00:19:19,600 --> 00:19:23,400
I was since I'm familiar with it
is just start typing over here. 

327
00:19:23,500 --> 00:19:28,000
So like a common use case and 
WordPress would be to get a list

328
00:19:28,000 --> 00:19:31,500
of posts. 
So we can just start typing and 

329
00:19:31,500 --> 00:19:33,600
it'll give us hints. 
It'll say these this is what's 

330
00:19:33,600 --> 00:19:35,500
available based on what you're 
typing. 

331
00:19:36,100 --> 00:19:42,900
And so I can query for the 
nodes, each post object would be

332
00:19:42,900 --> 00:19:48,300
considered a node in WP graphql 
and then we can start asking for

333
00:19:48,700 --> 00:19:54,300
fields of each post node. 
So things like an ID and a title

334
00:19:54,700 --> 00:19:57,200
and the date. 
And then we can execute by 

335
00:19:57,200 --> 00:20:02,700
clicking this play button. 
And then in response we get 

336
00:20:03,500 --> 00:20:08,000
actual Json payload that matches
the shape of our request. 

337
00:20:08,700 --> 00:20:13,200
So, a graph ql query, as you can
see it looks similar to Json. 

338
00:20:14,400 --> 00:20:16,800
It's like the keys without the 
values. 

339
00:20:16,900 --> 00:20:21,000
And then the response is actual 
Json, keys and values. 

340
00:20:21,500 --> 00:20:25,600
And so, we can, we can specify 
what we want from the system, 

341
00:20:25,600 --> 00:20:27,500
and get a payload that matches 
that. 

342
00:20:27,900 --> 00:20:33,200
So, over time, You know, our 
manager might say, hey, and in 

343
00:20:33,200 --> 00:20:35,900
addition to the ID, the title 
and date, we also need the 

344
00:20:35,900 --> 00:20:39,900
author, right? 
And so what we can do you know, 

345
00:20:39,900 --> 00:20:43,000
you can come back later to the 
query and say I want the author 

346
00:20:43,300 --> 00:20:46,200
and on the author or authors a 
node by itself as well. 

347
00:20:46,300 --> 00:20:51,000
And the author no Bert have its 
own properties like name and 

348
00:20:51,000 --> 00:20:55,300
maybe like an avatar which might
have a URL. 

349
00:20:56,200 --> 00:20:58,500
Right? 
So I can execute this. 

350
00:20:59,600 --> 00:21:04,800
And in one request, I can get 
multiple resources we're in in a

351
00:21:04,808 --> 00:21:07,700
restful API. 
I would have to get the post. 

352
00:21:08,800 --> 00:21:12,100
The payload would return an ID 
to the author and then I would 

353
00:21:12,100 --> 00:21:15,300
have to do a round trip to get 
the author and at least in the 

354
00:21:15,300 --> 00:21:17,900
WordPress, but the guy you would
also have another endpoint to 

355
00:21:17,900 --> 00:21:20,500
get the avatar for that author. 
So we're dealing with three 

356
00:21:20,500 --> 00:21:25,200
resources here, post author, and
the Avatar of the office. 

357
00:21:25,900 --> 00:21:30,200
So graphql, lets you be very 
explicit and say, hey, my 

358
00:21:30,200 --> 00:21:33,600
application needs these exact 
Fields, I don't want anything 

359
00:21:33,600 --> 00:21:38,400
else, that's and so you get You 
need to specify what you need. 

360
00:21:38,800 --> 00:21:42,300
And so, we can do this with any 
any type of content in 

361
00:21:42,300 --> 00:21:46,600
WordPress, right? 
We can start with users and get 

362
00:21:46,600 --> 00:21:51,200
users directly. 
We can get their name and we can

363
00:21:51,200 --> 00:21:53,600
go the reverse way. 
Like, I can get pokes that the, 

364
00:21:53,600 --> 00:21:55,800
that the user has authored, 
right? 

365
00:21:56,000 --> 00:21:58,600
So we can do kind of the inverse
of what we just did. 

366
00:21:59,900 --> 00:22:03,400
Now the other thing I really 
like, for instance, on our site,

367
00:22:03,400 --> 00:22:07,500
we have like our top three blogs
are top or latest three blogs, 

368
00:22:07,500 --> 00:22:10,800
our latest, three whatever and 
you can bring all of that 

369
00:22:10,800 --> 00:22:14,300
together and graphql, right? 
Yep you have. 

370
00:22:14,300 --> 00:22:18,800
So you can you can you can chain
beta 10. 

371
00:22:18,800 --> 00:22:21,600
Follow have like four calls 
going back. 

372
00:22:22,200 --> 00:22:25,500
Yeah, that's another thing too. 
I can enter the room, the root 

373
00:22:25,500 --> 00:22:29,000
of the query multiple times so I
could caps-lock calm. 

374
00:22:29,400 --> 00:22:34,200
So I Ask for posts directly from
the root of the query and users 

375
00:22:34,200 --> 00:22:38,900
at the same time, so I can get 
my posts and my users. 

376
00:22:39,800 --> 00:22:43,800
So, I got two different lists of
data in one network request, 

377
00:22:44,300 --> 00:22:48,300
which is really cool. 
So, there's some, some really 

378
00:22:48,300 --> 00:22:52,900
cool stuff you can do that with 
this and so some other features 

379
00:22:52,900 --> 00:22:56,100
of like the graphql query 
language that I think are are 

380
00:22:56,900 --> 00:23:00,700
really good for have us. 
WordPress are like headless 

381
00:23:00,700 --> 00:23:03,300
development. 
These days is concept called 

382
00:23:03,300 --> 00:23:06,700
fragments and what fragments 
are. 

383
00:23:06,900 --> 00:23:11,800
So, if I take a query, like I 
just did in in, like, kind of 

384
00:23:11,800 --> 00:23:15,100
the componentized architecture 
of today, like, where 

385
00:23:15,100 --> 00:23:17,500
everybody's using reactor view 
or something like that. 

386
00:23:17,800 --> 00:23:21,700
The, the common pattern is you 
build components that handle a 

387
00:23:21,700 --> 00:23:24,700
specific need, right? 
Like, so if we, if we were 

388
00:23:24,700 --> 00:23:28,300
looking at we go, so I have some
history. 

389
00:23:28,300 --> 00:23:31,600
Here, I'll go. 
Back, let's say let's say we're 

390
00:23:31,600 --> 00:23:33,000
doing something simple like 
this. 

391
00:23:33,000 --> 00:23:37,500
We had a list of posts. 
And we and for each post, we 

392
00:23:37,500 --> 00:23:40,800
needed to render the title and 
the date, right? 

393
00:23:41,400 --> 00:23:44,000
What we would probably do in our
component architectures have two

394
00:23:44,000 --> 00:23:48,300
components a post list component
and the Pope's component, right?

395
00:23:48,500 --> 00:23:51,400
So you have one component that 
is responsible for getting a 

396
00:23:51,400 --> 00:23:54,700
list and one components that 
that's responsible for rendering

397
00:23:55,000 --> 00:23:59,000
the individual thing. 
So what we can do in graphql is 

398
00:23:59,000 --> 00:24:03,600
something called fragments. 
And so we can say fragment and 

399
00:24:03,600 --> 00:24:04,900
we can call this anything we 
want. 

400
00:24:04,900 --> 00:24:07,800
We can see Post data. 
Like this doesn't matter. 

401
00:24:07,800 --> 00:24:10,700
We can call it anything and we 
say on post. 

402
00:24:10,700 --> 00:24:15,400
So, any time we get to this type
of data, in the graph, we can 

403
00:24:15,400 --> 00:24:19,200
specify the fields we want. 
So we can say, I want the ID, 

404
00:24:19,200 --> 00:24:22,900
the title, and the date. 
And then what we can do is 

405
00:24:22,900 --> 00:24:29,100
replace it up here. 
And then we can execute and 

406
00:24:29,100 --> 00:24:30,600
we're still getting the same 
data. 

407
00:24:31,000 --> 00:24:35,700
What we can do though is couple 
this fragment with our component

408
00:24:36,100 --> 00:24:40,100
that renders the HTML for that 
data. 

409
00:24:41,100 --> 00:24:44,200
So in your application you just 
spit it back. 

410
00:24:44,500 --> 00:24:47,600
Yeah yep. 
So you would have you would have

411
00:24:47,600 --> 00:24:50,100
a post list component for 
example, that would have this 

412
00:24:50,100 --> 00:24:55,300
query and you would you'd import
your post component to that and 

413
00:24:55,300 --> 00:25:00,500
the fragment for the Right? 
And and so yeah, as you grow as 

414
00:25:00,500 --> 00:25:06,300
your application, grows the, the
data dependency is right there 

415
00:25:06,300 --> 00:25:08,600
with the mark-up that you're 
outputting. 

416
00:25:09,000 --> 00:25:11,200
So your boss comes back to you a
month later and says, hey, you 

417
00:25:11,200 --> 00:25:15,000
know what, we actually need to 
Output? 

418
00:25:15,000 --> 00:25:18,100
I don't know like the GMT date, 
right? 

419
00:25:18,100 --> 00:25:20,900
Which is, you know, so we could 
say, okay, we need to go get 

420
00:25:20,900 --> 00:25:23,600
that now instead of whatever or 
whatever it is. 

421
00:25:24,000 --> 00:25:26,400
And so you just add that to the 
one component. 

422
00:25:26,600 --> 00:25:30,300
Aunt, and then you update your 
markup and then it works, right?

423
00:25:30,300 --> 00:25:34,000
You don't have to do this whole,
like I gotta find out where 

424
00:25:34,000 --> 00:25:36,500
we're fetching the data. 
And then I gotta go over here 

425
00:25:36,500 --> 00:25:38,000
and transform and then I got to 
go here. 

426
00:25:38,000 --> 00:25:40,700
And then there's no you just got
to worry about how to format it 

427
00:25:40,700 --> 00:25:43,100
on the front end. 
Yeah, yeah, yeah. 

428
00:25:43,100 --> 00:25:46,400
That's yeah. 
That's for sure to and there's 

429
00:25:46,400 --> 00:25:49,700
there's some of those things 
though we have, let me. 

430
00:25:50,600 --> 00:25:53,800
Yeah, let me switch over. 
So I'll show some of that as 

431
00:25:53,800 --> 00:25:57,900
well and a second, I'm gonna 
Wait, so the graphical we're 

432
00:25:57,900 --> 00:25:59,900
looking at now shows with WP 
graphical. 

433
00:25:59,900 --> 00:26:04,900
Today, I am working on a new 
version of of graphical so you 

434
00:26:04,900 --> 00:26:10,200
can get it. 
It's on GitHub under WP graphql,

435
00:26:10,200 --> 00:26:18,200
its graphical something that you
created and know, I wish I just 

436
00:26:18,200 --> 00:26:20,700
use it. 
Um, it's so graphical. 

437
00:26:20,700 --> 00:26:21,900
What? 
Yeah. 

438
00:26:21,900 --> 00:26:25,900
Facebook open sourced it and 
it's like react component. 

439
00:26:26,000 --> 00:26:30,000
It's now Now, part of the graph,
the actual graphql Foundation 

440
00:26:31,100 --> 00:26:32,700
which is separate from Facebook 
now. 

441
00:26:34,200 --> 00:26:35,500
But yeah the so they open 
sources. 

442
00:26:35,500 --> 00:26:38,800
I use it. 
I'm working on a new version of 

443
00:26:38,800 --> 00:26:41,700
the WordPress specific version 
so it's open source. 

444
00:26:41,700 --> 00:26:44,400
Well you can go download it. 
It will ship with though you 

445
00:26:44,408 --> 00:26:47,400
could graph kill in the future 
but I'll activate that to show 

446
00:26:47,400 --> 00:26:49,300
some other cool features real 
quick. 

447
00:26:49,500 --> 00:26:53,300
So when you, if you actually 
that same thing as just a little

448
00:26:53,300 --> 00:26:59,100
bit newer interface, So we still
have graphical here but we have 

449
00:26:59,100 --> 00:27:03,600
some additional features. 
Like, I can switch between 

450
00:27:03,600 --> 00:27:07,700
executing as a logged in user, 
or a public user because 

451
00:27:07,700 --> 00:27:13,200
WordPress has some data that is 
not visible to public users. 

452
00:27:14,300 --> 00:27:17,900
And so, so I would kind of want 
to show some of that stuff so we

453
00:27:17,900 --> 00:27:22,600
can say like there's a query in 
here called viewer so we can get

454
00:27:22,600 --> 00:27:27,900
information about who the 
current we were is And so if I 

455
00:27:27,900 --> 00:27:32,300
execute this right now as a 
executing as a public User, it's

456
00:27:32,300 --> 00:27:34,900
going to say nobody there. 
I don't I don't know who you 

457
00:27:34,900 --> 00:27:38,300
are. 
If I click this button we can 

458
00:27:38,300 --> 00:27:41,100
see it's using whoever I'm 
logged in as here. 

459
00:27:41,800 --> 00:27:44,500
It's going to use my identity so
now I can execute. 

460
00:27:44,500 --> 00:27:47,100
This is oh, I know who you are, 
right? 

461
00:27:47,200 --> 00:27:49,600
So we can do some very Dynamic 
stuff here, right? 

462
00:27:51,000 --> 00:27:55,000
Like woocommerce is a big 
e-commerce platform for 

463
00:27:55,000 --> 00:27:57,200
WordPress. 
There's a Joe extension for 

464
00:27:57,200 --> 00:27:59,700
that, right? 
So you can get your product 

465
00:27:59,700 --> 00:28:03,700
information which is General 
generally public to anybody, but

466
00:28:03,700 --> 00:28:05,800
then you can also get your cart 
information, right? 

467
00:28:05,800 --> 00:28:09,700
Like what, what items are in 
your cart, and, and how to 

468
00:28:09,700 --> 00:28:12,200
calculate taxes for your ZIP 
code, or whatever? 

469
00:28:12,200 --> 00:28:14,800
It might be so stuff. 
That's unique to you. 

470
00:28:14,800 --> 00:28:18,700
You can, you can interact with. 
If we don't know who you are, 

471
00:28:19,000 --> 00:28:21,800
you might not get the data. 
If we know who you are, you 

472
00:28:21,800 --> 00:28:23,800
might get the data for the 
better interface to me. 

473
00:28:23,800 --> 00:28:26,900
I'm familiar with putting 
headers in in the Bottom, those 

474
00:28:26,900 --> 00:28:29,600
query variables where you have 
to put in the header for the 

475
00:28:29,600 --> 00:28:31,100
stuff you need. 
And that's how you would 

476
00:28:31,100 --> 00:28:34,400
typically do that. 
And or in the cases that I've 

477
00:28:34,400 --> 00:28:38,100
used and that's nice to have 
that visual there that just kind

478
00:28:38,100 --> 00:28:40,500
of logs you in. 
And then it allows you to access

479
00:28:40,500 --> 00:28:44,500
that Yen behind the scenes that 
is what is happening. 

480
00:28:44,500 --> 00:28:46,100
It still is like over the 
network. 

481
00:28:46,100 --> 00:28:48,500
We still have to send headers to
identify who we are. 

482
00:28:48,900 --> 00:28:52,300
But yeah this is just trying to 
make it easier for you to get up

483
00:28:52,300 --> 00:28:54,300
and running. 
There's up. 

484
00:28:54,400 --> 00:28:57,600
There's some really there's 
there's other If we can do, so 

485
00:28:57,600 --> 00:29:01,600
fragments is really cool thing. 
There's another concept called 

486
00:29:01,600 --> 00:29:06,400
variables so we can say like 
will say query and we can name 

487
00:29:06,400 --> 00:29:10,700
our query is so we can say like 
get posts and we get we can say 

488
00:29:11,500 --> 00:29:14,000
we had to find a variable so 
variable and graphql starts with

489
00:29:14,000 --> 00:29:17,000
the dollar sign and you can name
it anything you want. 

490
00:29:17,200 --> 00:29:20,200
And then you have to say what 
type of data it's going to be. 

491
00:29:20,300 --> 00:29:22,000
So we'll say this can be 
integer. 

492
00:29:23,600 --> 00:29:28,400
And then we can write a query 
and say posts first, and we're 

493
00:29:28,400 --> 00:29:32,500
going to use a variable value 
for this and then we can ask for

494
00:29:32,500 --> 00:29:35,700
what we need, ask for like the 
ID and the title. 

495
00:29:36,000 --> 00:29:38,200
And now we have this first 
variable here. 

496
00:29:38,800 --> 00:29:43,000
So whatever, whatever value I 
put in here like to will affect 

497
00:29:43,000 --> 00:29:45,700
this query as well. 
We're going to have two posts, 

498
00:29:45,700 --> 00:29:51,900
return, or one poster turn? 
Or, you know, 10 post return. 

499
00:29:52,200 --> 00:29:56,400
So what what this allows me to 
do is write write a query that 

500
00:29:56,400 --> 00:30:01,300
my component can use, but allow 
users to submit, you know, 

501
00:30:01,300 --> 00:30:04,400
interactive elements. 
Like I don't know if you are on 

502
00:30:04,400 --> 00:30:07,800
a product page and you want to 
see 10, you know, products per 

503
00:30:07,800 --> 00:30:12,900
page or 20 or whatever the user 
can interact with it and it can 

504
00:30:13,400 --> 00:30:16,100
affect the outcome of the query,
right? 

505
00:30:16,800 --> 00:30:21,600
So you can pageant. 
And with this setup as yeah. 

506
00:30:22,500 --> 00:30:23,200
Yep. 
Yeah. 

507
00:30:23,200 --> 00:30:27,600
So you can paginate for sure. 
So there's a concept in. 

508
00:30:28,600 --> 00:30:31,600
So, so one thing, one thing to 
note about graphql in general, 

509
00:30:32,300 --> 00:30:36,000
before I get into the pagination
graphql, the technology by 

510
00:30:36,000 --> 00:30:40,000
itself, does not enforce any 
schema design decisions. 

511
00:30:40,900 --> 00:30:44,900
You can have a schema that is, 
as simple as one field. 

512
00:30:44,900 --> 00:30:48,300
Hello that returns a string 
world, right? 

513
00:30:48,600 --> 00:30:50,500
And I could be your entire ER, 
graphql API. 

514
00:30:52,100 --> 00:30:55,600
And it can also get very complex
when it comes to things, like 

515
00:30:55,600 --> 00:31:00,500
pagination graphql, itself, 
doesn't do anything for you to 

516
00:31:00,500 --> 00:31:05,900
paginate, but in the graphql 
community, there's a relay, 

517
00:31:05,900 --> 00:31:09,300
there's a specification called 
the relay specification, which 

518
00:31:09,300 --> 00:31:13,200
also came from Facebook. 
And it's a set of conventions 

519
00:31:13,200 --> 00:31:19,100
for how they think schema should
be designed to. 

520
00:31:19,700 --> 00:31:21,700
Accomplished common needs, 
right? 

521
00:31:21,700 --> 00:31:24,000
And pagination is one of those 
needs. 

522
00:31:25,400 --> 00:31:29,100
So when you're paginating data, 
some things you need to know 

523
00:31:29,100 --> 00:31:33,100
about the data would be, is 
there more data, right? 

524
00:31:33,200 --> 00:31:36,900
Am I at the end of the list or 
is there more data if there is 

525
00:31:36,900 --> 00:31:39,400
more data? 
How can I get to it, right? 

526
00:31:39,500 --> 00:31:43,600
And so, in here, there's a 
concept called edges and this is

527
00:31:43,600 --> 00:31:48,100
a concept that comes from the 
graph or the from the relay 

528
00:31:48,100 --> 00:31:50,500
spec. 
And so So instead of cording for

529
00:31:50,500 --> 00:31:55,700
nodes directly we can query for 
edges and what edges do is it 

530
00:31:55,700 --> 00:32:02,200
gives us some contextual data 
about between the query and the 

531
00:32:02,200 --> 00:32:05,300
note itself and what we can do 
is ask for a thing called a 

532
00:32:05,308 --> 00:32:09,100
cursor. 
And for any other Nadia to 

533
00:32:09,100 --> 00:32:11,600
switch from using nodes to a 
singular. 

534
00:32:11,600 --> 00:32:16,500
I know now so edges and then 
yeah oh sure and so we can ask 

535
00:32:16,500 --> 00:32:20,100
for what's called a cursor and 
this is a reference for where in

536
00:32:20,100 --> 00:32:24,900
the list of data that specific 
note is and then what we can 

537
00:32:24,900 --> 00:32:31,600
also ask for is something called
page info and we can ask does 

538
00:32:31,600 --> 00:32:35,700
this query have a next page. 
So there's a field called has 

539
00:32:35,700 --> 00:32:40,700
next page that Ali Say true or 
false and then we can ask for we

540
00:32:40,700 --> 00:32:43,500
can either ask for the cursor at
this point or we can also ask 

541
00:32:43,500 --> 00:32:45,900
for What's called the end cursor
here. 

542
00:32:47,200 --> 00:32:52,400
If I execute this it's going to 
say hasn't expanded his true and

543
00:32:52,400 --> 00:32:57,500
so I can ask for the next page I
say, okay, I asked for 10 items.

544
00:32:58,200 --> 00:32:59,900
The server says, there's more 
than 10. 

545
00:33:00,200 --> 00:33:03,300
We can verify. 
This are also by, I'm going to 

546
00:33:03,308 --> 00:33:09,200
open the post view here. 
We can see there are 39, post 

547
00:33:09,200 --> 00:33:11,600
altogether. 37 of them are 
published. 

548
00:33:11,800 --> 00:33:15,500
So if we're asking for ten items
will get four pages, right? 

549
00:33:17,000 --> 00:33:21,300
We can do, we can change our 
query to have an after variable.

550
00:33:22,500 --> 00:33:26,900
And this will be a string and we
will change it in here to will 

551
00:33:26,900 --> 00:33:31,400
say after. 
Well we're going to do if we 

552
00:33:31,400 --> 00:33:34,800
query for kind of items that 
will be our first page. 

553
00:33:36,000 --> 00:33:39,900
And we can say after null, so 
they're we're not going to say 

554
00:33:39,900 --> 00:33:42,300
after anything. 
So if I query, this this will be

555
00:33:42,300 --> 00:33:47,500
page one and then I can use this
cursor, the end of cursor, I can

556
00:33:47,500 --> 00:33:52,100
either take it from here, I can 
take it from The Edge and I can 

557
00:33:52,100 --> 00:33:59,300
put it not copy it. 
If I copy that cursor and 

558
00:33:59,300 --> 00:34:02,300
execute again, I'll get the next
set of results. 

559
00:34:04,300 --> 00:34:09,300
And this would be very similar 
to saying, like page to right 

560
00:34:09,300 --> 00:34:12,100
here. 
So I'll get the next set of 

561
00:34:12,100 --> 00:34:17,600
results and we can continue 
until has next page, returns 

562
00:34:17,600 --> 00:34:21,300
false. 
So one more and we'll be at the 

563
00:34:21,300 --> 00:34:27,500
end of the list. 
So now has next page is false 

564
00:34:27,600 --> 00:34:30,000
and we have like whatever the 
last seven items. 

565
00:34:31,199 --> 00:34:35,699
So now I know you resend a list 
so you can use that for infinite

566
00:34:35,699 --> 00:34:39,800
scroll or you know, like like 
slack when you're scrolling 

567
00:34:39,800 --> 00:34:42,100
through slack. 
Every time you scroll it says, 

568
00:34:42,100 --> 00:34:44,900
hey, is that more messages and 
loved them more messages and a 

569
00:34:44,908 --> 00:34:47,300
lot of them that you can build a
UI like that. 

570
00:34:47,800 --> 00:34:51,100
I have a blog post where I go in
depth on pagination and I show 

571
00:34:51,100 --> 00:34:53,699
how to do it with like next and 
previous buttons as well. 

572
00:34:55,699 --> 00:34:58,500
Yeah, there's a added to the 
notes. 

573
00:34:58,600 --> 00:34:59,600
Cool. 
Oh yeah, sure. 

574
00:34:59,600 --> 00:35:06,500
So it's like do you figure out 
kill.com and maybe that here we 

575
00:35:06,500 --> 00:35:14,600
go imagination. 
There we go. 

576
00:35:14,600 --> 00:35:15,900
Pagination. 
Yeah, there we go. 

577
00:35:18,700 --> 00:35:21,000
Do not click it. 
I don't know how to use a 

578
00:35:21,000 --> 00:35:22,900
computer. 
Here we go. 

579
00:35:23,600 --> 00:35:26,000
So, blog post called forward, 
and backward, pagination with 

580
00:35:26,000 --> 00:35:29,300
the figure out to go and there's
a, yeah, there's like examples 

581
00:35:29,300 --> 00:35:33,600
in here and I think there's a 
Code sandbox somewhere in here. 

582
00:35:33,600 --> 00:35:38,000
If it loads Yeah. 
Yeah. 

583
00:35:38,000 --> 00:35:39,900
Here we go. 
Yes. 

584
00:35:39,900 --> 00:35:42,900
A bit. 
This it shows. 

585
00:35:42,900 --> 00:35:44,400
It's like an actual UI that 
shows. 

586
00:35:44,400 --> 00:35:48,600
It looks like it's taking a 
minute to look but but yeah. 

587
00:35:48,600 --> 00:35:51,400
So that's a. 
So we have pagination, we have 

588
00:35:51,400 --> 00:35:54,200
variables. 
There's another really cool 

589
00:35:54,200 --> 00:35:56,500
thing that I love called 
aliases. 

590
00:35:57,700 --> 00:36:01,900
So if you have like a component 
and you said hey we don't want 

591
00:36:01,900 --> 00:36:04,200
this thing to be called title, 
we want it to be called name, 

592
00:36:04,200 --> 00:36:08,200
right? 
Can in my query I can say I want

593
00:36:08,200 --> 00:36:13,800
the title but can you give it to
me called name and so I just I 

594
00:36:13,800 --> 00:36:17,300
say give it to me called name 
and in response it comes back to

595
00:36:17,300 --> 00:36:20,700
me called Nate so I can do some 
cool stuff like that. 

596
00:36:21,300 --> 00:36:26,400
I can also, do you mentioned 
formatting not all field support

597
00:36:26,400 --> 00:36:30,100
this at the moment but it's 
possible to so we can we can 

598
00:36:30,300 --> 00:36:34,400
pass arguments to individual 
Fields so I can say like I want 

599
00:36:34,500 --> 00:36:38,600
I want The content to be 
rendered, which would be like in

600
00:36:38,600 --> 00:36:41,000
WordPress. 
You have Rock content, which is 

601
00:36:41,000 --> 00:36:43,300
like, whatever the user inputs 
and then you have rendered 

602
00:36:43,300 --> 00:36:47,800
content, which takes what they 
put in, make sure it's HTML, 

603
00:36:47,900 --> 00:36:49,600
right? 
Yeah. 

604
00:36:49,600 --> 00:36:55,200
So I can execute this and I'll 
get the rendered HTML or I can 

605
00:36:55,200 --> 00:37:01,300
execute raw, which will give me.
Something else sometimes, 

606
00:37:01,300 --> 00:37:05,100
sometimes it looks the same, but
like here's a good example. 

607
00:37:05,600 --> 00:37:08,300
There's a, what WordPress has a 
concept called shortcodes? 

608
00:37:09,500 --> 00:37:13,000
I can also query this side by 
side so we can say with an 

609
00:37:13,000 --> 00:37:16,900
alias. 
I can say rendered, And I guess 

610
00:37:16,900 --> 00:37:20,400
so we can see it side-by-side. 
And I can say rendered, but 

611
00:37:20,400 --> 00:37:22,200
we'll see here. 
This is this is something that's

612
00:37:22,200 --> 00:37:25,300
used behind the scenes in 
WordPress but that doesn't make 

613
00:37:25,300 --> 00:37:29,800
sense like on the front end like
nobody, nobody gets value out of

614
00:37:29,800 --> 00:37:34,100
this, right? 
And so behind the scenes, we 

615
00:37:34,100 --> 00:37:37,300
have liked that video 100. 
It's actually it didn't work 

616
00:37:37,300 --> 00:37:41,100
here, tissie, so it gives you 
the extra metal. 

617
00:37:42,200 --> 00:37:44,900
Yeah, but it didn't render out. 
I see. 

618
00:37:46,400 --> 00:37:50,800
Yeah, that was a, that might be 
a bug but anyway, you can see 

619
00:37:50,800 --> 00:37:52,500
there. 
There's differences in the 

620
00:37:52,500 --> 00:37:56,100
output. 
Yeah, here's a better example. 

621
00:37:56,700 --> 00:37:59,700
We have start going to create 
your own functions around these 

622
00:37:59,700 --> 00:38:02,500
as well, so yeah, sure, codes 
and Henry acts. 

623
00:38:02,500 --> 00:38:04,500
Now stick a component in their 
type of thing. 

624
00:38:04,800 --> 00:38:06,800
Yep, you couldn't hear it. 
Here's a better example. 

625
00:38:06,800 --> 00:38:13,500
Here was a raw YouTube, Link 
that was in the Raw content but 

626
00:38:13,500 --> 00:38:16,500
in the rendered content. 
It's the actual full YouTube 

627
00:38:16,500 --> 00:38:22,400
iframe, that's nice. 
So so there's stuff like that. 

628
00:38:23,400 --> 00:38:25,400
We you could do this with things
like dates. 

629
00:38:25,400 --> 00:38:28,200
Like that's when you mentioned 
it, you could have different 

630
00:38:28,200 --> 00:38:30,500
formats for dates. 
We don't at the moment but we 

631
00:38:30,500 --> 00:38:35,300
could and very likely will at 
some point I'm using. 

632
00:38:35,300 --> 00:38:39,400
But yeah, so we're Clause, I 
think on the spokes are Site to 

633
00:38:39,400 --> 00:38:42,200
like order by date. 
Yeah. 

634
00:38:42,200 --> 00:38:44,000
So we can we can do that as 
well. 

635
00:38:45,200 --> 00:38:49,800
So we can say, we can say, where
we can, we can do whatever we 

636
00:38:49,800 --> 00:38:54,000
can say, like offer in and we 
can pass it like list of ID's. 

637
00:38:54,700 --> 00:38:57,300
Let me, I'm gonna get really 
confident just cuz it's long, 

638
00:38:57,800 --> 00:39:01,300
but we can then I'll query for 
some authors just so we can see.

639
00:39:03,600 --> 00:39:07,200
So I can filter, let's see. 
What is it? 

640
00:39:07,400 --> 00:39:12,300
Mother let me do it without it, 
so we can get. 

641
00:39:14,400 --> 00:39:18,000
Okay, so my author's ideas Cree.
So when I did it by author One 

642
00:39:18,900 --> 00:39:20,400
it didn't work because I don't 
have an author one. 

643
00:39:20,700 --> 00:39:25,300
I do have an offer three though 
so I can query by author 3 and 

644
00:39:25,300 --> 00:39:30,100
we can see I'm going to get any 
any articles written by author 3

645
00:39:30,200 --> 00:39:35,700
which let's see who that is. 
We have Crooks am's he's 

646
00:39:35,700 --> 00:39:39,400
authored three articles we can 
we can verify this right? 

647
00:39:39,400 --> 00:39:44,800
We can go to the front end or 
whatever and Just make sure 

648
00:39:44,800 --> 00:39:49,100
we're getting right data, right?
So, we can say, oh, here's Chris

649
00:39:49,100 --> 00:39:52,200
Ames. 
We can look at his archive page 

650
00:39:52,200 --> 00:39:53,900
here. 
Do that actually with his 

651
00:39:53,900 --> 00:39:55,400
website? 
I don't want that. 

652
00:39:56,900 --> 00:40:01,600
Let's see. 
I thought it would gone to, 

653
00:40:01,800 --> 00:40:04,100
let's see what that would allow 
users. 

654
00:40:04,100 --> 00:40:06,500
Literally all the post bikers 
aims. 

655
00:40:06,500 --> 00:40:10,500
So you could then yeah, that 
would list out all his post. 

656
00:40:12,000 --> 00:40:20,500
So at the end of the day, a lot 
of, I don't know if your own or 

657
00:40:20,500 --> 00:40:23,800
what's on top of this. 
But you're essentially taking 

658
00:40:24,200 --> 00:40:28,700
whatever, graph query language, 
and breaking that down to a SQL 

659
00:40:28,700 --> 00:40:30,700
statement. 
I assume since It's what's under

660
00:40:30,700 --> 00:40:32,500
the hood and WordPress. 
Yep. 

661
00:40:33,100 --> 00:40:37,600
Yeah so yet it goes. 
Yeah from graphql and WordPress 

662
00:40:37,600 --> 00:40:40,400
has internal mechanisms for 
querying sequel. 

663
00:40:41,000 --> 00:40:44,500
Like there's a there's a series 
of classes called WP query. 

664
00:40:44,500 --> 00:40:49,500
WP user query WP tax query. 
So it uses all of those things 

665
00:40:49,900 --> 00:40:54,500
and the WordPress ecosystem, 
hooks into those things. 

666
00:40:54,600 --> 00:40:56,300
And and does things like there's
cash. 

667
00:40:56,300 --> 00:41:00,100
Plug-ins, for example, that will
hook into those mechanisms So, 

668
00:41:00,100 --> 00:41:02,900
you can install something like a
reddish cache mechanism that 

669
00:41:02,900 --> 00:41:06,300
will cache objects from 
WordPress, and to redis, and 

670
00:41:06,300 --> 00:41:08,400
that that works with regular 
WordPress. 

671
00:41:08,400 --> 00:41:13,200
But that will also work here. 
And so yeah. 

672
00:41:13,200 --> 00:41:15,700
So you can take advantage of 
existing WordPress ecosystem 

673
00:41:15,700 --> 00:41:19,300
things. 
There's there's some some other 

674
00:41:19,300 --> 00:41:25,200
cool things like there are 
plugins out there where you can 

675
00:41:25,300 --> 00:41:30,800
without writing code, you can 
define a custom Post types and 

676
00:41:30,800 --> 00:41:35,200
WordPress, there's popular 
plugins like there's one called 

677
00:41:35,200 --> 00:41:37,800
custom post type UI that does 
this. 

678
00:41:37,800 --> 00:41:40,200
And then there's plugins like 
Advanced custom fields that are 

679
00:41:40,200 --> 00:41:41,900
popular. 
That allow you to create fields 

680
00:41:41,900 --> 00:41:44,400
in WordPress. 
I'm going to demo one from my 

681
00:41:44,400 --> 00:41:46,000
employee. 
WP engine is called Atlas 

682
00:41:46,000 --> 00:41:49,900
content modeler. 
And so what this allows us to do

683
00:41:49,900 --> 00:41:54,400
is without writing any code, we 
can we can create new models or 

684
00:41:54,400 --> 00:41:59,100
new data types and WordPress. 
So let's say we were like cars, 

685
00:41:59,100 --> 00:42:01,400
for example, it It would maybe 
be a good one. 

686
00:42:02,100 --> 00:42:05,400
So we give it a single name and 
I'll Pearlman and then we can 

687
00:42:05,400 --> 00:42:08,000
define whether it's public. 
We can choose like an icon that 

688
00:42:08,000 --> 00:42:10,300
we want. 
If there's a car icon my guess 

689
00:42:10,300 --> 00:42:12,600
is there's probably not. 
Oh there is sweet. 

690
00:42:13,200 --> 00:42:17,500
It's we can have cars and gets a
like a collection of cars or 

691
00:42:17,500 --> 00:42:22,900
whatever so we can, we can 
create table within SQL them. 

692
00:42:24,700 --> 00:42:28,100
It's not it's using its using 
Wordpress convention so it's 

693
00:42:28,100 --> 00:42:30,500
using what's called post type 
Sosa. 

694
00:42:30,700 --> 00:42:34,700
Same table that any type of post
would be stored in it but we 

695
00:42:34,700 --> 00:42:37,400
could give it like we can give 
it a different feel dry, like 

696
00:42:37,400 --> 00:42:41,900
name or like, I don't know 
what's a good one make or 

697
00:42:41,900 --> 00:42:46,300
whatever or model make not 
Ogopogo model, you know. 

698
00:42:46,300 --> 00:42:48,400
Yeah, there we go. 
So we could we could create 

699
00:42:48,400 --> 00:42:50,300
that. 
We could add another field, you 

700
00:42:50,300 --> 00:42:51,800
said color. 
I don't know if we have Color 

701
00:42:51,800 --> 00:42:53,800
Picker in here yet but so we'll 
just do it. 

702
00:42:55,200 --> 00:43:01,500
String color out. 
We'll just start there will say 

703
00:43:01,500 --> 00:43:03,500
make and model. 
So what you can see the like I 

704
00:43:03,500 --> 00:43:05,800
just created that so I didn't 
write in code and I'm already I 

705
00:43:05,800 --> 00:43:08,600
have the cars showing up here, 
right? 

706
00:43:08,600 --> 00:43:11,300
I didn't have to write PHP, 
right? 

707
00:43:11,300 --> 00:43:14,400
So I if I'm a full-on JavaScript
developer, for example, I don't,

708
00:43:14,400 --> 00:43:18,600
I could be pretty successful 
without writing PHP here, so I 

709
00:43:18,600 --> 00:43:23,700
can now. 
Yeah, I can, I can go model my 

710
00:43:23,700 --> 00:43:27,100
data and then I can go publish 
some data. 

711
00:43:27,100 --> 00:43:30,200
So I can come in here and I can 
say, you know, we have like a 

712
00:43:31,200 --> 00:43:33,600
But what's a model? 
So yeah, I don't know will say 

713
00:43:33,600 --> 00:43:38,000
like model I there we go. 
And we'll say white. 

714
00:43:39,100 --> 00:43:40,500
Right? 
So then I can publish this 

715
00:43:40,500 --> 00:43:44,000
content and then was it was 
cool. 

716
00:43:44,000 --> 00:43:49,100
If I'm in, if I'm in constant 
model here, I can actually click

717
00:43:49,100 --> 00:43:52,800
open and graphical here and we 
can see it's going to generate a

718
00:43:52,800 --> 00:43:54,400
query. 
If I didn't break this. 

719
00:43:55,500 --> 00:43:57,800
Yeah, there we go. 
So, it's going to tell me like, 

720
00:43:57,800 --> 00:44:00,100
oh, here's here's how you can 
query this in graphical. 

721
00:44:00,800 --> 00:44:02,800
Also this URI by totally skip 
this. 

722
00:44:02,800 --> 00:44:07,200
There's this UI over here to 
call that query composer that 

723
00:44:07,200 --> 00:44:11,300
allows us to like create queries
by by you. 

724
00:44:11,300 --> 00:44:15,200
I so I like I can click. 
I have to use that version for 

725
00:44:15,200 --> 00:44:18,100
every graphql thing I've ever 
done because I guess, yeah, 

726
00:44:18,100 --> 00:44:21,800
remember it all. 
It's just so you can, you can 

727
00:44:21,800 --> 00:44:24,500
navigate the graph and then 
click the fields you want. 

728
00:44:25,800 --> 00:44:29,300
I have sometimes forget that's 
there because I just like to 

729
00:44:29,308 --> 00:44:33,300
type more but yeah, so it'll 
generate query for you here, 

730
00:44:33,600 --> 00:44:35,600
right? 
And it's any uses the fragments 

731
00:44:35,600 --> 00:44:39,900
and so I can go take this, put 
it in my react component or my 

732
00:44:39,900 --> 00:44:41,500
view component or whatever it 
might be. 

733
00:44:42,900 --> 00:44:48,200
And so yeah, without writing a 
line of PHP, I just generated a 

734
00:44:48,207 --> 00:44:51,600
new model or you know type of 
Compton and WordPress. 

735
00:44:51,900 --> 00:44:54,300
I published it. 
And now I'm able to get it out 

736
00:44:54,300 --> 00:44:57,800
of my application, right? 
And then we could, you can also 

737
00:44:57,800 --> 00:45:02,000
do, you can also mute Tate from 
graph, kill to which I 

738
00:45:02,000 --> 00:45:04,500
mentioned. 
But so we're in say, like, your 

739
00:45:04,500 --> 00:45:05,300
night. 
Yeah. 

740
00:45:05,700 --> 00:45:09,000
And like published and 
unpublished content. 

741
00:45:09,100 --> 00:45:10,200
Yes. 
Yep. 

742
00:45:10,200 --> 00:45:11,000
Okay. 
Yeah. 

743
00:45:11,000 --> 00:45:13,000
So it's, yeah, she was just kind
of curious. 

744
00:45:13,000 --> 00:45:14,300
As I was thinking. 
I will. 

745
00:45:14,400 --> 00:45:15,500
I will. 
I will. 

746
00:45:17,700 --> 00:45:21,500
And yeah, I know where we can 
get into like every aspect, but 

747
00:45:21,500 --> 00:45:24,100
I think this is a really good 
overview to give people kind of 

748
00:45:24,100 --> 00:45:29,400
excited about Like the 
capability that that WP graphql 

749
00:45:29,400 --> 00:45:33,900
has, unfortunately, we're 
running a little bit up on time 

750
00:45:33,900 --> 00:45:36,800
for the location. 
I know, Jason would be more than

751
00:45:36,800 --> 00:45:40,100
happy to show like people this 
stuff all day long. 

752
00:45:40,400 --> 00:45:42,800
I think. 
Do you have a YouTube channel 

753
00:45:42,800 --> 00:45:46,400
where you show a lot of this off
as well, not as much as I 

754
00:45:46,400 --> 00:45:49,300
should. 
But yeah, you can WP graphql. 

755
00:45:50,200 --> 00:45:53,500
Is this is my YouTube channel, 
you can also I've videos on 

756
00:45:53,500 --> 00:45:56,800
word, press dot TV as well. 
Like conference talks and we're 

757
00:45:56,808 --> 00:46:02,200
not cool but that our, her blog 
post to an awp engine. 

758
00:46:02,200 --> 00:46:05,800
Also has a devrel channel. 
If you go to 

759
00:46:06,000 --> 00:46:10,200
developers.google.com, we've got
a podcast. 

760
00:46:10,200 --> 00:46:12,000
That talks a lot about headless 
WordPress. 

761
00:46:13,500 --> 00:46:16,300
And, yes, we've got a podcast. 
We've got some videos. 

762
00:46:16,300 --> 00:46:20,000
We've got tutorials and whatnot.
Fantastic Walter. 

763
00:46:20,000 --> 00:46:23,200
All those in the show notes, 
that will help people know where

764
00:46:23,200 --> 00:46:26,400
to go and get started. 
Cool. 

765
00:46:26,400 --> 00:46:30,800
Well, we're going to shift gears
a little bit here and jump over 

766
00:46:31,000 --> 00:46:38,300
to our perfect picks, and I've 
completely lost where my browser

767
00:46:38,300 --> 00:46:42,200
window is for our perfect picks.
There it is. 

768
00:46:42,200 --> 00:46:47,400
Okay. 
So our first perfect pick is 

769
00:46:47,400 --> 00:46:50,400
actually one from Jason. 
Jason, do you want to talk about

770
00:46:50,400 --> 00:46:54,900
this one guy? 
So I picked the local my 

771
00:46:54,900 --> 00:46:59,400
flywheel as so you could you can
actually find it at local W 

772
00:46:59,400 --> 00:47:04,800
p.com as well. 
And so local is a developer tool

773
00:47:04,800 --> 00:47:09,400
that it's a desktop application,
you install and allows you to 

774
00:47:09,400 --> 00:47:12,100
spin up WordPress environments 
with the click of a button, it 

775
00:47:12,100 --> 00:47:16,300
will set up the database will 
set Everything you need to start

776
00:47:16,300 --> 00:47:20,000
running WordPress, takes 
probably 30 seconds to have a 

777
00:47:20,000 --> 00:47:21,400
WordPress install up and 
running. 

778
00:47:22,400 --> 00:47:25,300
I use it every single day. 
Yeah, it's really incredible 

779
00:47:25,300 --> 00:47:29,700
when we're kind of going through
the same having a WordPress as 

780
00:47:29,700 --> 00:47:33,800
coding cats at full site. 
We were using it quite a bit so 

781
00:47:33,900 --> 00:47:36,100
or at least I was that's pretty 
cool. 

782
00:47:38,200 --> 00:47:39,700
Brittany. 
Your first. 

783
00:47:41,000 --> 00:47:45,500
Yeah, my first pick is eCommerce
on the jam stack with snip cart.

784
00:47:45,500 --> 00:47:48,100
Next JS and WordPress, which is 
a mouthful. 

785
00:47:48,100 --> 00:47:51,600
But if you do not know who Colby
fog is, you may recognize him a 

786
00:47:51,600 --> 00:47:55,400
little bit better as space 
jelly, which I have his sticker,

787
00:47:55,400 --> 00:47:57,400
right. 
I can't figure out which way to 

788
00:47:57,400 --> 00:48:01,000
go right there. 
And he's a little space jelly 

789
00:48:01,000 --> 00:48:04,000
octopus. 
It's really cool. 

790
00:48:04,200 --> 00:48:07,600
He is a great guy, and a great 
teacher, and he works a lot with

791
00:48:07,600 --> 00:48:08,700
head. 
WordPress. 

792
00:48:08,700 --> 00:48:13,200
And this will get you set up 
with a cart like an e-commerce 

793
00:48:13,200 --> 00:48:16,900
store that you can just ship and
start selling stickers, 

794
00:48:17,200 --> 00:48:21,600
especially stickers, and it's on
level of tutorials, which is 

795
00:48:21,600 --> 00:48:25,800
also in a fantastic platform. 
So oppression, I click that 

796
00:48:25,800 --> 00:48:29,900
button but I saw a WP graphql 
section in there. 

797
00:48:29,900 --> 00:48:34,800
So good. 
Call a you go, then. 

798
00:48:34,800 --> 00:48:36,600
Brittany's fun. 
Pick. 

799
00:48:36,800 --> 00:48:40,200
Yes, my fun. 
Pick is / create I have been 

800
00:48:40,200 --> 00:48:42,200
really diving in the last few 
days. 

801
00:48:42,200 --> 00:48:44,400
Doing some YouTube tutorials on 
it. 

802
00:48:44,400 --> 00:48:47,500
Just to get the feel every time 
you get into a new application. 

803
00:48:47,500 --> 00:48:50,000
It's kind of overwhelming with 
how many choices there are. 

804
00:48:50,000 --> 00:48:54,500
And perjury is not an exception 
to that, it's very in-depth. 

805
00:48:54,500 --> 00:48:58,800
There's a lot to look at and see
and so I like to have those 

806
00:48:58,800 --> 00:49:01,800
video tutorials to kind of show 
me where things are and I've 

807
00:49:01,800 --> 00:49:05,200
been doing some of the regular 
tutorials. 

808
00:49:05,200 --> 00:49:07,700
And yesterday, I did my first 
animated one. 

809
00:49:07,900 --> 00:49:09,900
Finished it and we're showing it
on screen. 

810
00:49:09,900 --> 00:49:14,200
It's an animated snow globe, 
there's snow falling onto 

811
00:49:14,200 --> 00:49:18,200
Snowman and some trees. 
They're really fun to just play 

812
00:49:18,200 --> 00:49:20,300
with and relax. 
That's cool. 

813
00:49:20,700 --> 00:49:22,900
I have to ask. 
Did you make the entire snow 

814
00:49:22,900 --> 00:49:25,500
globe and everything? 
I do everything. 

815
00:49:25,600 --> 00:49:28,300
Well, I think that's that's 
awesome. 

816
00:49:28,400 --> 00:49:31,400
But procreate gives you a lot of
helpers like the circles and 

817
00:49:31,400 --> 00:49:34,900
stuff. 
You can like you draw the circle

818
00:49:34,900 --> 00:49:38,400
and then you hold it and it will
automatically generate the Right

819
00:49:38,400 --> 00:49:43,200
Circle and so correct man. 
That's just procreate do vectors

820
00:49:43,300 --> 00:49:47,300
or no, not that I've seen yet. 
I mean you can make things that 

821
00:49:47,300 --> 00:49:51,800
look like vector artwork, but 
it's not like an SVG, okay? 

822
00:49:52,000 --> 00:49:54,500
I always, I was struggled 
through all of those pieces 

823
00:49:54,500 --> 00:49:56,300
because, you know, I love my at 
VG's. 

824
00:49:56,500 --> 00:49:59,200
Yeah, I know I do too. 
And that's why I like figma a 

825
00:49:59,200 --> 00:50:02,200
lot, but it I don't think it 
does SVG files. 

826
00:50:02,800 --> 00:50:04,300
Cool. 
Awesome. 

827
00:50:05,400 --> 00:50:09,600
My first pick totally unrelated 
but I I'm so excited because 

828
00:50:10,000 --> 00:50:13,500
I've I still am kind of 
occasionally diving back into 

829
00:50:13,500 --> 00:50:15,100
flutter and seeing what's 
happening. 

830
00:50:15,500 --> 00:50:18,900
I saw this flutter flow come up 
and as you know, I started 

831
00:50:18,900 --> 00:50:22,300
Builder so I keep checking out 
all these like visual editors 

832
00:50:22,300 --> 00:50:24,700
now. 
And this is one for flutter 

833
00:50:24,700 --> 00:50:26,900
that's come out, it's really 
neat. 

834
00:50:27,400 --> 00:50:30,700
You can drag all these kind of 
different components into it and

835
00:50:30,700 --> 00:50:33,700
build entire flutter app. 
Basically no coat. 

836
00:50:33,800 --> 00:50:36,200
Oh, so it's a good tool for 
flutter. 

837
00:50:36,600 --> 00:50:39,200
Yeah, it's a miracle. 
Really, really impressive so 

838
00:50:39,200 --> 00:50:43,000
cold, I guess. 
And now the tie-in with Firebase

839
00:50:43,400 --> 00:50:47,700
was spot-on so I was shocked 
like we could have our whole 

840
00:50:47,700 --> 00:50:49,900
site up and running very quickly
on it. 

841
00:50:50,700 --> 00:50:54,500
Pretty cool. 
My second pick. 

842
00:50:54,500 --> 00:50:58,200
Which Brittany actually 
mentioned some post. 

843
00:50:58,200 --> 00:51:02,000
I don't remember ordering my 
pick this for I swear, I had to 

844
00:51:02,000 --> 00:51:04,900
move it. 
This podcast is so good. 

845
00:51:04,900 --> 00:51:07,700
I won't ruin it. 
I had no idea about it. 

846
00:51:07,900 --> 00:51:12,600
Honestly and I think you posted 
about maybe it was the fauna 

847
00:51:12,600 --> 00:51:14,600
piece. 
He said something like we just 

848
00:51:14,600 --> 00:51:17,500
did a Fanta podcast and then you
came back to Andrew, like, it's 

849
00:51:17,500 --> 00:51:19,300
popping up everywhere now. 
Yeah. 

850
00:51:19,300 --> 00:51:23,100
Um, and I started like, wow, 
there's a lot out here and so I 

851
00:51:23,100 --> 00:51:25,000
started diving back through the 
episodes. 

852
00:51:25,000 --> 00:51:30,200
Go check them out to listen. 
And they are so hilarious. 

853
00:51:30,200 --> 00:51:33,900
I mean, working at net, laughs, 
I must be just like meme Central

854
00:51:33,900 --> 00:51:37,300
because they are the funniest 
people on the planet. 

855
00:51:37,800 --> 00:51:41,400
I tell you what when Phil and 
like Cassie get going on there 

856
00:51:41,400 --> 00:51:45,500
there. 
So it's a great podcast. 

857
00:51:45,600 --> 00:51:48,100
We're gonna have to up our game 
with like Dad jokes or 

858
00:51:48,100 --> 00:51:49,100
something. 
I don't know. 

859
00:51:49,300 --> 00:51:54,400
I got that my turn dealers. 
I'm too serious on this. 

860
00:51:54,500 --> 00:51:57,900
We need more left. 
Yeah, we got to relax, chill 

861
00:51:57,900 --> 00:51:59,600
out. 
Well Jason, I really appreciate 

862
00:51:59,600 --> 00:52:02,100
your time. 
I think is really cool tool. 

863
00:52:02,100 --> 00:52:04,800
I think without it, I don't know
if I'd ever touch WordPress 

864
00:52:04,800 --> 00:52:07,300
again. 
So honestly, you've opened up 

865
00:52:07,300 --> 00:52:10,200
this whole All new like Realm of
possibilities for people. 

866
00:52:10,200 --> 00:52:11,200
Seriously.
