Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expgraphqlschema

Gibt das GraphQL-Schema eines Siteaccess aus oder schreibt es in eine Datei: die Schemasprache (sdl), das Ergebnis der Introspection (json) oder die Klassen und ihre Felder (summary).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expgraphqlschema.md

On this page

This page is a translation. Read the English original

exp:expgraphqlschema

Gibt das GraphQL-Schema eines Siteaccess aus oder schreibt es in eine Datei: die Schemasprache (sdl), das Ergebnis der Introspection (json) oder die Klassen und ihre Felder (summary).

Skript bin/php/expgraphqlschema.php, Code in kernel/private/classes/commands/expgraphqlschema.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expgraphqlschema --help
./console exp:graphql:schema --help
php bin/php/expgraphqlschema.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Print the GraphQL schema of a siteaccess
sdl (the default): the schema language, for code generators and editors;
json: the introspection result ({ "data": { "__schema": ... } }), as a client reads it;
summary: the classes, their types and fields, the datatype of each field and whether it has a mapping.
The schema is printed whether or not the API is switched on (a schema for development).

./console exp:graphql:schema --siteaccess=site
./console exp:graphql:schema --format=json --output=schema.json

Exit code: 0 printed; 1 the file could not be written; 3 the library is missing; 2 wrong options.

Optionen

OptionWertHilfe
--formaterforderlichsdl (der Standard), json oder summary
--outputerforderlichin diese Datei schreiben statt auf den Bildschirm

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expgraphqlschema.php, kernel/private/classes/commands/expgraphqlschema.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x