π ΠΡΠΏΡΡΠ΅Π½ Gato GraphQL v1.2 (Ρ Π½ΠΎΠ²ΡΠΌΠΈ Persisted Queries)
ΠΡΠΏΡΡΠ΅Π½Π° Π²Π΅ΡΡΠΈΡ 1.2 Gato GraphQL! π
ΠΠΈΠΆΠ΅ ΠΏΡΠΈΠ²Π΅Π΄Π΅Π½ΠΎ ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅ Π²ΡΠ΅Ρ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ.
ΠΠΎΠ±Π°Π²Π»Π΅Π½ΠΎ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ ΠΏΡΠ΅Π΄ΠΎΠΏΡΠ΅Π΄Π΅Π»ΡΠ½Π½ΡΡ Persisted Queries
Π’Π΅ΠΏΠ΅ΡΡ Π΄ΠΎΡΡΡΠΏΠ½Ρ ΡΠ»Π΅Π΄ΡΡΡΠΈΠ΅ Persisted Queries Π΄Π»Ρ Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΡ ΡΠ°ΡΠΏΡΠΎΡΡΡΠ°Π½ΡΠ½Π½ΡΡ Π·Π°Π΄Π°Ρ Π°Π΄ΠΌΠΈΠ½ΠΈΡΡΡΠΈΡΠΎΠ²Π°Π½ΠΈΡ:
ΠΠ΅ΡΠ΅Π²ΠΎΠ΄ ΠΊΠΎΠ½ΡΠ΅Π½ΡΠ° ΠΏΠΎ URL
ΠΠΎΠ»ΡΡΠΈΠ² Π½Π° Π²Ρ ΠΎΠ΄ URL, ΡΠ·ΡΠΊ ΠΈΡΡΠΎΡΠ½ΠΈΠΊΠ° ΠΈ ΡΠ·ΡΠΊ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄Π°, ΡΡΠΎΡ query ΠΏΠΎΠ»ΡΡΠ°Π΅Ρ ΠΊΠΎΠ½ΡΠ΅Π½Ρ ΠΏΠΎ URL ΠΈ Π²ΡΠΏΠΎΠ»Π½ΡΠ΅Ρ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄ Ρ ΠΏΠΎΠΌΠΎΡΡΡ Google Translate:
query TranslateContent(
$url: URL!
$fromLang: String!
$toLang: String!
) {
_sendHTTPRequest(input: {
url: $url,
method: GET
}) {
body
translated: body @strTranslate(
from: $fromLang
to: $toLang
)
}
}ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΏΠ΅ΡΠ΅Π΄Π°Π² URL Markdown-ΡΠ°ΠΉΠ»Π° ΠΈΠ· ΡΠ΅ΠΏΠΎΠ·ΠΈΡΠΎΡΠΈΡ GitHub ΠΈ ΠΊΠΎΠ΄ ΡΠ·ΡΠΊΠ° "es":
{
"url": "https://raw.githubusercontent.com/GatoGraphQL/GatoGraphQL/c870d8906ae1aec3c81acc039c53acc7aab5dff0/layers/GatoGraphQLForWP/plugins/gatographql/docs/modules/single-endpoint/en.md",
"fromLang": "en",
"toLang": "es"
}...Markdown-ΠΊΠΎΠ½ΡΠ΅Π½Ρ Π±ΡΠ΄Π΅Ρ ΠΏΠ΅ΡΠ΅Π²Π΅Π΄ΡΠ½ Π½Π° ΠΈΡΠΏΠ°Π½ΡΠΊΠΈΠΉ ΡΠ·ΡΠΊ:
{
"data": {
"_sendHTTPRequest": {
"body": "# Single Endpoint\n\nExecute queries against the GraphQL server through the public single endpoint.\n\nBy default the endpoint is `/graphql/`, and the path can be configured through the Settings.\n\n\n\nThe GraphQL single endpoint can be configured by assigning a Schema Configuration to it. To do this, on section \"Schema Configuration\" select the desired entry from the dropdown for \"Schema Configuration for the Single Endpoint\":\n\n<div class=\"img-width-1024\" markdown="1">\n\n\n\n</div>\n\n## Clients\n\nInteract with the single endpoint via the available clients.\n\n### GraphiQL\n\nIf module \"GraphiQL for Single Endpoint\" is enabled, then the single endpoint's GraphiQL client becomes publicly available.\n\nTo open it, click on link \"π’ GraphiQL (public)\" on the plugin's menu:\n\n<div class=\"img-width-1024\" markdown="1">\n\n\n\n</div>\n\nBy default, the client is exposed under `/graphiql/`. This path can be modified on the Settings, under tab \"GraphiQL for Single Endpoint\":\n\n<div class=\"img-width-1024\" markdown="1">\n\n\n\n</div>\n\n### Interactive Schema (Voyager)\n\nIf module \"Interactive Schema for Single Endpoint\" is enabled, then the single endpoint's Voyager client becomes publicly available.\n\nTo open it, click on link \"π’ Schema (public)\" on the plugin's menu:\n\n<div class=\"img-width-1024\" markdown="1">\n\n\n\n</div>\n\nBy default, the client is exposed under `/schema/`. This path can be modified on the Settings, under tab \"Interactive Schema for Single Endpoint\":\n\n<div class=\"img-width-1024\" markdown="1">\n\n\n\n</div>\n",
"translated": "# Punto final ΓΊnico\n\nEjecute consultas en el servidor GraphQL a travΓ©s del punto final ΓΊnico pΓΊblico.\n\nDe forma predeterminada, el punto final es `/graphql/` y la ruta se puede configurar a travΓ©s de ConfiguraciΓ³n.\n\n\n\nEl punto final ΓΊnico GraphQL se puede configurar asignΓ‘ndole una configuraciΓ³n de esquema. Para hacer esto, en la secciΓ³n \"ConfiguraciΓ³n del esquema\", seleccione la entrada deseada del menΓΊ desplegable para \"ConfiguraciΓ³n del esquema para el punto final ΓΊnico\":\n\n<div class=\"img-width-1024\" descuento=1>\n\n\n\n</div>\n\n## Clientes\n\nInteractΓΊe con el punto final ΓΊnico a travΓ©s de los clientes disponibles.\n\n### GrafiQL\n\nSi el mΓ³dulo \"GraphiQL para punto final ΓΊnico\" estΓ‘ habilitado, el cliente GraphiQL del punto final ΓΊnico estarΓ‘ disponible pΓΊblicamente.\n\nPara abrirlo, haga clic en el enlace \"π’ GraphiQL (pΓΊblico)\" en el menΓΊ del complemento:\n\n<div class=\"img-width-1024\" descuento=1>\n\n\n\n</div>\n\nDe forma predeterminada, el cliente estΓ‘ expuesto en `/graphiql/`. Esta ruta se puede modificar en ConfiguraciΓ³n, en la pestaΓ±a \"GraphiQL para punto final ΓΊnico\":\n\n<div class=\"img-width-1024\" descuento=1>\n\n\n\n</div>\n\n### Esquema interactivo (Voyager)\n\nSi el mΓ³dulo \"Esquema interactivo para punto final ΓΊnico\" estΓ‘ habilitado, el cliente Voyager del punto final ΓΊnico estarΓ‘ disponible pΓΊblicamente.\n\nPara abrirlo, haga clic en el enlace \"π’ Esquema (pΓΊblico)\" en el menΓΊ del complemento:\n\n<div class=\"img-width-1024\" descuento=1>\n\n\n\n</div>\n\nDe forma predeterminada, el cliente estΓ‘ expuesto en `/schema/`. Esta ruta se puede modificar en ConfiguraciΓ³n, en la pestaΓ±a \"Esquema interactivo para punto final ΓΊnico\":\n\n<div class=\"img-width-1024\" descuento=1>\n\n\n\n</div>\n"
}
}
}ΠΡΠΎΡ query ΡΠ°ΠΊΠΆΠ΅ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ Π² ΡΠ°Π·Π΄Π΅Π» Recipes ΠΏΠΎΠ΄ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ΠΌ Β«Translating content from URLΒ».
ΠΠ΅ΡΠ΅Π²ΠΎΠ΄ Π·Π°ΠΏΠΈΡΠΈ (ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΈΠΉ ΡΠ΅Π΄Π°ΠΊΡΠΎΡ) ΠΈ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄ Π·Π°ΠΏΠΈΡΠ΅ΠΉ (ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΈΠΉ ΡΠ΅Π΄Π°ΠΊΡΠΎΡ)
Π Π°Π½Π΅Π΅ ΡΠΆΠ΅ ΡΡΡΠ΅ΡΡΠ²ΠΎΠ²Π°Π»ΠΈ persisted queries Β«Translate postΒ» ΠΈ Β«Translate postsΒ» (ΠΌΠ°ΡΡΠΎΠ²ΠΎ), ΠΏΡΠ΅Π΄Π½Π°Π·Π½Π°ΡΠ΅Π½Π½ΡΠ΅ Π΄Π»Ρ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄Π° Π²ΡΠ΅Ρ ΡΠ²ΠΎΠΉΡΡΠ² Π²Π½ΡΡΡΠΈ Π±Π»ΠΎΠΊΠΎΠ² Gutenberg Π² Π·Π°ΠΏΠΈΡΠΈ.
ΠΠ½ΠΈ Π±ΡΠ»ΠΈ Π΄ΠΎΠ»ΠΆΠ½ΡΠΌ ΠΎΠ±ΡΠ°Π·ΠΎΠΌ ΠΏΠ΅ΡΠ΅ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½Ρ Π² Β«Translate post (Gutenberg)Β» ΠΈ Β«Translate posts (Gutenberg)Β», Π° Π΄Π»Ρ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄Π° ΠΊΠΎΠ½ΡΠ΅Π½ΡΠ° Π² ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΎΠΌ ΡΠ΅Π΄Π°ΠΊΡΠΎΡΠ΅ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½Ρ Π½ΠΎΠ²ΡΠ΅ persisted queries:
- Translate post (Classic editor): ΠΠ΅ΡΠ΅Π²ΠΎΠ΄ ΠΎΠ΄Π½ΠΎΠΉ Π·Π°ΠΏΠΈΡΠΈ
- Translate posts (Classic editor): ΠΠ°ΡΡΠΎΠ²ΡΠΉ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ Π·Π°ΠΏΠΈΡΠ΅ΠΉ
ΠΡΠ΅ ΡΡΠΈ queries ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄ΡΡ ΠΊΠΎΠ½ΡΠ΅Π½Ρ, Π²ΡΠ·ΡΠ²Π°Ρ Google Translate API ΠΈ ΠΎΡΠΏΡΠ°Π²Π»ΡΡ Π²ΡΠ΅ Π΄Π°Π½Π½ΡΠ΅ Π² ΡΠ°ΠΌΠΊΠ°Ρ ΠΎΠ΄Π½ΠΎΠ³ΠΎ Π·Π°ΠΏΡΠΎΡΠ°.
Π’Π°ΠΊΠΈΠΌ ΠΎΠ±ΡΠ°Π·ΠΎΠΌ, Π΅ΡΠ»ΠΈ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ query Β«Translate posts (Classic editor)Β» Π΄Π»Ρ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄Π° 5 Π·Π°ΠΏΠΈΡΠ΅ΠΉ, Π²ΡΠ΅ Π΄Π°Π½Π½ΡΠ΅ (Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ, ΠΊΠΎΠ½ΡΠ΅Π½Ρ ΠΈ excerpt) Π΄Π»Ρ Π²ΡΠ΅Ρ 5 Π·Π°ΠΏΠΈΡΠ΅ΠΉ ΠΎΡΠΏΡΠ°Π²Π»ΡΡΡΡΡ Π²ΠΌΠ΅ΡΡΠ΅, ΠΎΠ±Π΅ΡΠΏΠ΅ΡΠΈΠ²Π°Ρ Π±ΠΎΠ³Π°ΡΡΠΉ ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡ ΠΈ ΠΏΠΎΠ²ΡΡΠ΅Π½Π½ΡΡ ΡΠΎΡΠ½ΠΎΡΡΡ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄Π°.
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΏΠΎΡΠ»Π΅ ΠΏΠ΅ΡΠ΅Π²ΠΎΠ΄Π° ΡΡΠΎΠΉ Π·Π°ΠΏΠΈΡΠΈ Ρ Π°Π½Π³Π»ΠΈΠΉΡΠΊΠΎΠ³ΠΎ Π½Π° ΠΊΠΈΡΠ°ΠΉΡΠΊΠΈΠΉ:

...ΠΎΠ½Π° ΡΡΠ°Π»Π° ΡΠ°ΠΊΠΎΠΉ:

ΠΠΌΠΏΠΎΡΡ Π·Π°ΠΏΠΈΡΠΈ ΠΈΠ· RSS-Π»Π΅Π½ΡΡ WordPress
Π£ΠΊΠ°ΠΆΠΈΡΠ΅ RSS-Π»Π΅Π½ΡΡ WordPress Π΄Π»Ρ Π·Π°ΠΏΠΈΡΠΈ, ΠΈ Π½Π° Π΅Ρ ΠΎΡΠ½ΠΎΠ²Π΅ Π±ΡΠ΄Π΅Ρ ΡΠΎΠ·Π΄Π°Π½Π° Π½ΠΎΠ²Π°Ρ Π·Π°ΠΏΠΈΡΡ Ρ ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΡΡΡΠΈΠΌΠΈ Π΄Π°Π½Π½ΡΠΌΠΈ.
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, query ΡΠ°Π·Π±Π΅ΡΡΡ ΡΠ»Π΅Π΄ΡΡΡΡΡ RSS-Π»Π΅Π½ΡΡ Π΄Π»Ρ ΠΎΠ΄Π½ΠΎΠΉ Π·Π°ΠΏΠΈΡΠΈ (ΠΎΠ±ΡΡΠ½ΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΡΡ ΠΏΠΎ Π°Π΄ΡΠ΅ΡΡ https://mysite.com/post-slug/feed/rss/?withoutcomments=1):
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>
<title>A tale of two cities – teaser – PoP API Demo</title>
<atom:link href="https://mysite.com/blogroll/a-tale-of-two-cities-teaser/feed/?withoutcomments=1" rel="self" type="application/rss+xml" />
<link>https://mysite.com</link>
<description>Just another WordPress site</description>
<lastBuildDate>Tue, 20 Jul 2021 23:03:59 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1 </sy:updateFrequency>
<generator>https://wordpress.org/?v=6.1.1</generator>
<item>
<title>A tale of two cities – teaser</title>
<link>https://mysite.com/blogroll/a-tale-of-two-cities-teaser/</link>
<comments>https://mysite.com/blogroll/a-tale-of-two-cities-teaser/#comments</guides/query/comments>
<dc:creator>leo</dc:creator>
<pubDate>Mon, 21 Dec 2020 08:24:18 +0000</pubDate>
<category>Blogroll</category>
<category>championship</category>
<category>book</category>
<guid isPermaLink="false">https://mysite.com/?p=1657</guid>
<description></description>
<content:encoded>
<p>It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other wayβin short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.</p>
</content:encoded>
<wfw:commentRss>https://mysite.com/blogroll/a-tale-of-two-cities-teaser/feed/</wfw:commentRss>
<slash:comments>45</slash:comments>
</item>
</channel>
</rss>ΠΠΌΠΏΠΎΡΡ Π·Π°ΠΏΠΈΡΠ΅ΠΉ ΠΈΠ· CSV
ΠΡΠ΅Π΄ΠΎΡΡΠ°Π²ΡΡΠ΅ CSV-ΡΠ°ΠΉΠ» Π΄Π»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ Π·Π°ΠΏΠΈΡΠ΅ΠΉ Ρ ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΡΡΡΠΈΠΌΠΈ Π΄Π°Π½Π½ΡΠΌΠΈ Π΄Π»Ρ ΠΊΠ°ΠΆΠ΄ΠΎΠΉ ΡΡΡΠΎΠΊΠΈ (Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ, excerpt, ΠΊΠΎΠ½ΡΠ΅Π½Ρ ΠΈ Π°Π²ΡΠΎΡ).
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΏΡΠΈΠ²Π΅Π΄ΡΠ½Π½ΡΠΉ Π½ΠΈΠΆΠ΅ CSV ΡΠΎΠ·Π΄Π°ΡΡ 3 Π·Π°ΠΏΠΈΡΠΈ:
Title,Excerpt,Content,Author
Multi-channelled optimal interface,Inventore iste velit et expedita ipsa dolor,"<!-- wp:paragraph -->
<p>Inventore iste velit et expedita ipsa dolor. Optio suscipit qui id harum corporis dignissimos.</p>
<!-- /wp:paragraph -->",admin
Ergonomic motivating parallelism,Consequuntur velit quasi assumenda,"<!-- wp:paragraph -->
<p>Consequuntur velit quasi assumenda. Eum non saepe est. Ut dolorem harum eveniet eaque nemo impedit. Voluptatem commodi modi sed sed animi voluptatem.</p>
<!-- /wp:paragraph -->
<!-- wp:image {""id"":5,""sizeSlug"":""large""} -->
<figure class=""wp-block-image size-large""><img src=""https://mysite.com/wp-content/uploads/2023/09/wordpress0.jpg"" alt="""" class=""wp-image-5""/></figure>
<!-- /wp:image -->
<!-- wp:image {""id"":7,""sizeSlug"":""large""} -->
<figure class=""wp-block-image size-large""><img src=""https://mysite.com/wp-content/uploads/2023/09/wordpress2.jpg"" alt="""" class=""wp-image-7""/></figure>
<!-- /wp:image -->",admin
Down-sized solution-oriented securedline,Ipsam minima qui asperiores dolorum unde voluptas quia voluptate,"<!-- wp:paragraph -->
<p>Ipsam minima qui asperiores dolorum unde voluptas quia voluptate. Incidunt omnis cumque beatae quo deleniti ex. Praesentium nihil et consectetur neque commodi tempora ipsa adipisci. Praesentium perferendis sint est.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Et aut fuga aliquam consequuntur dolore sunt ut ut. Quibusdam in voluptas vitae quia eaque. Eligendi dolorum dolorem vitae et vitae et ut.</p>
<!-- /wp:paragraph -->",admin
ΠΠΎΡΠ»Π΅ Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΡ query ΠΏΠΎΠ»ΡΡΠ°Π΅ΠΌ ΡΠ»Π΅Π΄ΡΡΡΠΈΠ΅ ΡΠ΅Π·ΡΠ»ΡΡΠ°ΡΡ:

ΠΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΡΡΡΠ»ΠΎΠΊ ΠΈΠ· Π·Π°ΠΏΠΈΡΠ΅ΠΉ
ΠΠ°Ρ
ΠΎΠ΄ΠΈΡ Π²ΡΠ΅ ΡΡΡΠ»ΠΊΠΈ Π²ΠΎ Π²ΡΠ΅Ρ
Π·Π°ΠΏΠΈΡΡΡ
(Π²ΡΠΏΠΎΠ»Π½ΡΡ ΠΏΠΎΠΈΡΠΊ ΡΡΡΠΎΠΊ Π²ΠΈΠ΄Π° <a href="(...)">(...)</a>) ΠΈ ΠΏΠ΅ΡΠ΅ΡΠΈΡΠ»ΡΠ΅Ρ ΠΈΡ
Π² ΠΎΡΠ²Π΅ΡΠ΅ Π² Π²ΠΈΠ΄Π΅ JSON-ΠΎΠ±ΡΠ΅ΠΊΡΠ° ΡΠΎ ΡΠ²ΠΎΠΉΡΡΠ²Π°ΠΌΠΈ { href: (...), text: (...) }.
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ ΠΏΠΎΠ»ΡΡΠ΅Π½ ΡΠ»Π΅Π΄ΡΡΡΠΈΠΉ ΠΎΡΠ²Π΅Ρ:
{
"data": {
"posts": [
{
"id": 1435,
"title": "Citations from famous authors",
"links": [
{
"href": "https://www.azquotes.com/author/4085-Fyodor_Dostoevsky",
"text": "Quote by Fyodor Dostoevsky"
},
{
"href": "https://www.azquotes.com/author/14706-Leo_Tolstoy",
"text": "Quote by Leon Tolstoi"
},
{
"href": "https://www.azquotes.com/author/15138-Voltaire",
"text": "Quote by Voltaire"
}
]
},
{
"id": 1,
"title": "Hello world!",
"links": []
}
]
}
}ΠΠΎΠ±Π°Π²Π»Π΅Π½ ΡΠΊΠ°Π»ΡΡΠ½ΡΠΉ ΡΠΈΠΏ XML
Π’Π΅ΠΏΠ΅ΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠ΅ΡΠ΅Π΄Π°Π²Π°ΡΡ XML-ΡΡΡΠΎΠΊΠΈ ΡΠ΅ΡΠ΅Π· Π½ΠΎΠ²ΡΠΉ ΡΠΊΠ°Π»ΡΡΠ½ΡΠΉ ΡΠΈΠΏ XML, ΠΊΠΎΡΠΎΡΡΠΉ Π±ΡΠ΄Π΅Ρ ΠΏΡΠΎΠ²Π΅ΡΡΡΡ ΠΊΠΎΡΡΠ΅ΠΊΡΠ½ΠΎΡΡΡ XML-ΡΡΡΠΎΠΊΠΈ.
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ, ΡΠ»Π΅Π΄ΡΡΡΠΈΠΉ query:
{
_strDecodeXMLAsJSON(xml: """<?xml version="1.0" encoding="UTF-8"?>
<body>
<message>Hello world!</message>
</body>
""")
}...Π²Π΅ΡΠ½ΡΡ:
{
"data": {
"_strDecodeXMLAsJSON": {
"message": "Hello world!"
}
}
}Π ΡΠ»Π΅Π΄ΡΡΡΠΈΠΉ query:
{
_strDecodeXMLAsJSON(xml: """<?xml version="1.0" encoding="UTF-8"?>
<body>
<message>Hello world!</message>
""")
}...Π²Π΅ΡΠ½ΡΡ:
{
"errors": [
{
"message": "Cannot cast value '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <body>\n <message>Hello world!<\/message>\n ' for type 'XML'",
"locations": [
{
"line": 2,
"column": 31
}
],
"extensions": {
"field": "_strDecodeXMLAsJSON(xml: \"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <body>\n <message>Hello world!<\/message>\n \")",
"problems": [
"Premature end of data in tag body line 2\n"
]
}
}
],
"data": {
"_strDecodeXMLAsJSON": null
}
}Π£Π»ΡΡΡΠ΅Π½Π° Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ
- ΠΠΎΠ±Π°Π²Π»Π΅Π½Π° Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π΄Π»Ρ Π½ΠΎΠ²ΡΡ
ΠΏΠΎΠ»Π΅ΠΉ ΠΈΠ· ΡΠ°ΡΡΠΈΡΠ΅Π½ΠΈΡ Helper Function Collection:
_strDecodeXMLAsJSON_strParseCSV
ΠΡΠΏΡΠ°Π²Π»Π΅Π½ΠΎ
- Π ΠΏΡΠ΅Π΄ΠΎΠΏΡΠ΅Π΄Π΅Π»ΡΠ½Π½ΡΡ
persisted queries Β«Translate postΒ» ΠΈ Β«Translate postsΒ» Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΎ
failIfNonExistingKeyOrPath: falseΠΏΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ ΡΠ²ΠΎΠΉΡΡΠ²Π°attributes.{something}Π±Π»ΠΎΠΊΠ° (ΠΏΠΎΡΠΊΠΎΠ»ΡΠΊΡ ΠΎΠ½ΠΎ ΠΈΠ½ΠΎΠ³Π΄Π° ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ Π½Π΅ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½ΠΎ) - Π ΠΏΡΠ΅Π΄ΠΎΠΏΡΠ΅Π΄Π΅Π»ΡΠ½Π½ΠΎΠΉ persisted query Β«Import post from WordPress siteΒ» Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ ΡΡΠ°ΡΡΡ
anyΠ΄Π»Ρ Π²ΡΠ±ΠΎΡΠ° Π·Π°ΠΏΠΈΡΠΈ - Persisted query Β«Translate postΒ» ΠΏΠ΅ΡΠ΅ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½Π° Π² Β«Translate post (Gutenberg)Β», Π° Β«Translate postsΒ» β Π² Β«Translate posts (Gutenberg)Β»