Mutations

This commit is contained in:
Your Name committed 2021-07-28 19:10:35 +02:00
1 parent 3b054a640b
commit a6d844bd01
5 files changed
+104 -6

No files matched your search

+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;