๐ ์๋ก์ด Gato GraphQL v2.1๋ก WordPress ์์ ์ ์๋ํํ์ธ์
Gato GraphQL v2.1์ด ์ถ์๋์์์ ๊ธฐ์๊ฒ ์๋ ค๋๋ฆฝ๋๋ค!
์ด ์ ๋ฒ์ ๊ณผ PRO ํ์ฅ ๊ธฐ๋ฅ์ ํจ๊ป ์ฌ์ฉํ๋ฉด GraphQL as Automator๋ฅผ ์คํํ ์ ์์ต๋๋ค. GraphQL ํผ์์คํฐ๋ ์ฟผ๋ฆฌ๋ฅผ ํ์ฉํ์ฌ WordPress ์ฌ์ดํธ์ ๋ฐ์ดํฐ ๊ด๋ จ ์์ ์ ์๋ํํ ์ ์์ต๋๋ค.
์๋์ v2.1์ ์ถ๊ฐ๋ ๋ชจ๋ ๋ณ๊ฒฝ ์ฌํญ์ ์ ๋ฆฌํ์์ต๋๋ค๏ผ๊ฐ๋ตํ ๋ฒ์ ์ GitHub ๋ฆด๋ฆฌ์ค ๋
ธํธ์์ ํ์ธํ์ค ์ ์์ต๋๋ค๏ผ.
๋ด๋ถ GraphQL ์๋ฒ ํธ์ถ ์ ์ ์ฉํ ์คํค๋ง ๊ตฌ์ฑ ์ง์ ์ง์
์ด์ ๋ด๋ถ GraphQL ์๋ฒ๏ผ์ฆ, ์๋ํฌ์ธํธ๋ฅผ ํตํ์ง ์๊ณ PHP ์ ํ๋ฆฌ์ผ์ด์ ๋ด๋ถ์์ ์ง์ ์คํํ๋ ๊ฒฝ์ฐ๏ผ๋ฅผ ํตํด ์ฟผ๋ฆฌ๋ฅผ ์คํํ ๋ ์ ์ฉํ ์คํค๋ง ๊ตฌ์ฑ์ ์ง์ ํ ์ ์์ต๋๋ค.
์ด ์๋ก์ด ๊ธฐ๋ฅ์ Internal GraphQL Server ํ์ฅ ๊ธฐ๋ฅ์ ๊ฐํํฉ๋๋ค. GraphQLServer ํด๋์ค์ executeQuery ๋ฐ executeQueryInFile ๋ฉ์๋์ $schemaConfigurationIDOrSlug ํ๋ผ๋ฏธํฐ๊ฐ ์ถ๊ฐ๋์์ผ๋ฉฐ, executePersistedQuery์์๋ ํผ์์คํฐ๋ ์ฟผ๋ฆฌ์ ์ฌ์ฉ๋ ์คํค๋ง ๊ตฌ์ฑ์ ์ด๋ฏธ ์ถ์ถํ๊ณ ์์ต๋๋ค.
class GraphQLServer {
public static function executeQuery(
string $query,
array $variables = [],
?string $operationName = null,
+ // Accept parameter
+ int|string|null $schemaConfigurationIDOrSlug = null,
): Response {
// ...
}
public static function executeQueryInFile(
string $file,
array $variables = [],
?string $operationName = null,
+ // Accept parameter
+ int|string|null $schemaConfigurationIDOrSlug = null,
): Response {
// ...
}
public static function executePersistedQuery(
WP_Post|string|int $persistedQuery,
array $variables = [],
?string $operationName = null,
+ // Schema Configuration is taken directly from the Persisted Query
): Response {
// ...
}GraphQL as Automator [PRO]
์ ๊ธฐ๋ฅ์ Automation ํ์ฅ ๊ธฐ๋ฅ ์ ๊ทธ๋ ์ด๋์ ๊ธฐ๋ฐ์ด ๋๊ธฐ๋ ํฉ๋๋ค.
Automation ํ์ฅ ๊ธฐ๋ฅ์๋ Automation Configurator๋ผ๋ ใ์คํ ๋ฉ์ดํฐใ ์ฌ์ฉ์ ์ธํฐํ์ด์ค๏ผWordPress ํธ์ง๊ธฐ์์ ์ง์ ์ฌ์ฉ ๊ฐ๋ฅ๏ผ๊ฐ ์ถ๊ฐ๋์์ต๋๋ค. ์๋ํ ํธ๋ฆฌ๊ฑฐ๋ WordPress ์ก์ ํ ์ด๋ฉฐ, ์คํ๋๋ ์์ ์ GraphQL ํผ์์คํฐ๋ ์ฟผ๋ฆฌ์ ๋๋ค.

์๋ฅผ ๋ค์ด, ์ ๊ฒ์๋ฌผ์ ์์ฑํ ๋ ์๋ํ ๊ท์น Add comments block to new post๏ผ๋์ผํ ์ด๋ฆ์ ํผ์์คํฐ๋ ์ฟผ๋ฆฌ ์คํ๏ผ๋ core/comments ๋ธ๋ก์ด ์กด์ฌํ๋์ง ํ์ธํ๊ณ , ์๋ค๋ฉด ๊ฒ์๋ฌผ ํ๋จ์ ์ถ๊ฐํฉ๋๋ค.

์คํ ๋ฉ์ดํฐ๋ฅผ ํ์ฉํ ์ ์๋ ๋ช ๊ฐ์ง ๋ฐฉ๋ฒ์ ์๊ฐํฉ๋๋ค.
- AI๋ฅผ ์ฌ์ฉํ์ฌ ์ ๊ฒ์๋ฌผ์ ๋ํ ์ด๋ฏธ์ง๋ฅผ ์์ฑ๏ผ๋ฐ ์ต์ ํ๏ผํ๊ธฐ
- ๊ฒ์๋ฌผ์ด ๊ณต๊ฐ๋ ๋ ํ์ ๋ธ๋ก ์ถ๊ฐํ๊ธฐ
- ๊ฒ์๋ฌผ์ด ์
๋ฐ์ดํธ๋ ๋ ๋ชจ๋ ์ด๋ฏธ์ง ์์ค์ ๋งํฌ์
http๋ฅผhttps๋ก ๊ต์ฒดํ๊ธฐ - ์ ๊ฒ์๋ฌผ์ด ์์ ๋ ๊ด๋ฆฌ์์๊ฒ ์ด๋ฉ์ผ ๋ฐ์กํ๊ธฐ
- ๋๊ธ์ ์ ๋ต๊ธ์ด ๋ฌ๋ฆฐ ์ฌ์ฉ์์๊ฒ ์ด๋ฉ์ผ ๋ฐ์กํ๊ธฐ
- [๋ฉํฐ์ฌ์ดํธ] ์ ๊ฒ์๋ฌผ์ ์ฌ๋ฌ ์ธ์ด๋ก ๋ฒ์ญํ๊ณ ๋ฒ์ญ๋ ๊ฒ์๋ฌผ์ ๊ฐ ์ฌ์ดํธ์ ์ถ๊ฐํ๊ธฐ
- ์ธ๋ถ ์๋น์ค์์ ์์ ์คํํ๊ธฐ๏ผ์: ์ ๊ฒ์๋ฌผ์ Facebook์ ์๋์ผ๋ก ๊ณต์ ํ๊ธฐ๏ผ
GraphQL ํผ์์คํฐ๋ ์ฟผ๋ฆฌ์ ์๋ํ ๊ท์น์ wp-admin ๋ด์์ ์ง์ ์์ฑํ ์ ์์ผ๋ฏ๋ก, ํ์์ ๋ง๊ฒ ๊ณ ๋๋ก ๋ง์ถคํ๋ ์๋ํ ํ์ดํ๋ผ์ธ์ ์ฆ์ ๊ตฌ์ถํ ์ ์์ต๋๋ค.
์ ๋ ฅ์ ์ ์ฝ์ด ์๊ธฐ ๋๋ฌธ์๏ผGraphQL ์ฟผ๋ฆฌ๋ WordPress ๋ด ๋ชจ๋ ๋ฐ์ดํฐ์ ์ํธ์์ฉํ ์ ์์ผ๋ฉฐ, HTTP ํด๋ผ์ด์ธํธ๋ฅผ ํตํด ์ธ๋ถ ์๋น์ค์๋ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค๏ผ, ์๊ตฌ ์ฌํญ์ 100%๋ฅผ ์ถฉ์กฑํ ์ ์์ ๊ฒ์ ๋๋ค.
๏ผ์คํ ๋ฉ์ดํฐ ํ๋ฌ๊ทธ์ธ์ ์ผ๋ฐ์ ์ผ๋ก ํ์์ 95%๋ฅผ ์ถฉ์กฑํ์ง๋ง, ํ์ํ ์ ๋ ฅ์ด ๋งคํ๋์ด ์์ง ์์ ๊ฒฝ์ฐ๋ฅผ ์ข ์ข ๋ง์ฃผ์น๊ฒ ๋ฉ๋๋คใ๏ผ
ํ๋ฌ๊ทธ์ธ์๋ ์ด๋ฏธ ๋ช ๊ฐ์ง ์๋ํ ๊ท์น์ด ์์ฑ๋์ด ์์ต๋๋ค๏ผ์ํ๊ฐ draft์ด๋ฏ๋ก ์ ์ฉํ๋ ค๋ฉด publish๋ก ์
๋ฐ์ดํธํด์ผ ํฉ๋๋ค๏ผ. ์ด ๊ท์น๋ค์ ๋ฐ๋ก ์ฌ์ฉํ๊ฑฐ๋, ์ง์ ์๋ํ๋ฅผ ๋ง๋ค ๋ ์ฐธ๊ณ ์์๋ก ํ์ฉํ ์ ์์ต๋๋ค๏ผ์ด ๋ชฉ๋ก์ ์ดํ ๋ฆด๋ฆฌ์ค์์ ๊ณ์ ํ์ฅ๋ ์์ ์
๋๋ค๏ผ.
- Add comments block to new post
- Insert block in new post
- Send notification email to admin when there is a new post
- Generate a post's featured image using AI (and optimize it) if a new post has none

์ฌ์ ์ ์๋ ํผ์์คํฐ๋ ์ฟผ๋ฆฌ ใInsert block in postใ
์๋ก ์ถ๊ฐ๋ ํผ์์คํฐ๋ GraphQL ์ฟผ๋ฆฌ ใInsert block in postใ๋ ๊ฒ์๋ฌผ์ ๋ธ๋ก์ ์ฝ์
ํ ์ ์์ต๋๋ค. ๊ฒ์๋ฌผ ๋ด์์ ์ง์ ํ ์ ํ๏ผ๊ธฐ๋ณธ๊ฐ: wp:paragraph๏ผ์ n๋ฒ์งธ ๋ธ๋ก์ ์ฐพ์, ์ ๊ณต๋ ์ปค์คํ
๋ธ๋ก์ HTML ์ฝํ
์ธ ๋ฅผ ๊ทธ ๋ฐ๋ก ๋ค์ ๋ฐฐ์นํฉ๋๋ค.
Automation ํ์ฅ ๊ธฐ๋ฅ๊ณผ ํจ๊ป ์ฌ์ฉํ๋ฉด, ์ด ํผ์์คํฐ๋ ์ฟผ๋ฆฌ๋ฅผ ํตํด ์๋ก ๊ณต๊ฐ๋ ๊ฒ์๋ฌผ์ ํ์ ๋ธ๋ก์ ์๋์ผ๋ก ์ฝ์ ํ ์ ์์ต๋๋ค๏ผ์: ์งํ ์ค์ธ ์บ ํ์ธ์ ํ๋ณดํ๋ CTA ๋ธ๋ก๏ผ.
๊ฐ์ ์ฌํญ
- ์บ์์์ ์๋น์ค ์ปจํ ์ด๋ ์ด๊ธฐํ์ ์คํจํ ๊ฒฝ์ฐ ๋ฉ๋ชจ๋ฆฌ์์ PHP ๊ฐ์ฒด๋ฅผ ์ด๊ธฐํํ๋ ํด๋ฐฑ ์ฒ๋ฆฌ ์ถ๊ฐ (#2638)
- ์ฌ์ ์ ์๋ ๋ชจ๋ ํผ์์คํฐ๋ ์ฟผ๋ฆฌ์ ๊ณ ์ ํ operationName ๋ถ์ฌ (#2644)
- ๊ฒ์๋ฌผ์์ ๋ธ๋ก์ ๊ฐ์ ธ์ฌ ๋ ๋ธ๋ก ์ฝํ ์ธ ์ ์ค๋ฅ๊ฐ ์๋ ๊ฒฝ์ฐ ์ค๋ฅ ๋ฉ์์ง ๊ฐ์
- Automation ํ์ฅ ๊ธฐ๋ฅ ๋ฌธ์ ์์ฑ (#2651)
- ์ฌ์ ์ ์๋ ํผ์์คํฐ๋ ์ฟผ๋ฆฌ ใGenerate a post's featured image using AI and optimize itใ์์ ๊ฒ์๋ฌผ ์ ๋ชฉ์ด ๋น์ด ์์ง ์์ ๋๋ง ๋ก์ง์ด ์คํ๋๋๋ก ์์ (#ec931dd)
์์ ์ฌํญ
- ํ์ฅ ๊ธฐ๋ฅ๏ผAccess Control, Cache Control, Field Deprecation๏ผ์์ ์ฌ์ฉํ๋ ๋ฉํฐ ์ปจํธ๋กค JS ์ปดํฌ๋ํธ๊ฐ ์คํค๋ง ๊ตฌ์ฑ์ ๋ธ๋ก์ ใundefinedใ๋ฅผ ํ์ํ๋ ๋ฒ๊ทธ (#2639)
- ์ฌ์ ์ ์๋ ํผ์์คํฐ๋ ์ฟผ๋ฆฌ์ ์ ๊ท์ ์นํ ๋ฒ๊ทธ (#2649)
- ํ๋ฌ๊ทธ์ธ์ ๋นํ์ฑํยท์ฌํ์ฑํํ ๋ ํ๋ฌ๊ทธ์ธ ์ค์ ๋ฐ์ดํฐ๊ฐ ์ฌ์ค์น๋์ง ์๋๋ก ์์ (#2641)
- ๋ด๋ถ GraphQL ์๋ฒ์ GraphQL ๋ณ์๋ก WP_Post๋ฅผ ์ ๋ฌํ ๋ ๋ฐ์ํ๋ ์ค๋ฅ ์ฒ๋ฆฌ (#2652)