Mutations

This commit is contained in:
Your Name
2021-07-28 19:10:35 +02:00
parent 3b054a640b
commit a6d844bd01
5 changed files with 104 additions and 6 deletions
+6 -2
View File
@@ -68,7 +68,7 @@ class SchemaSourceProvider implements LighthouseSchemaSourceProvider
public function getSchemaString(): string
{
// root types
$schema = '
$schema = "
type Query {
dummy: Boolean
}
@@ -76,7 +76,11 @@ class SchemaSourceProvider implements LighthouseSchemaSourceProvider
type Mutation {
dummy: Boolean
}
';
type Subscription {
dummy: Boolean @subscription(class: \"GermanAirlinesVa\\\\Graphql\\\\Classes\\\\Dummy\")
}
";
// schema
$schema .= collect($this->getGraphMap())->implode('schema', '');
return $schema;