@@ 64-73 (lines=10) @@ | ||
61 | * @param SchemaContainer $schemaContainer |
|
62 | * @param array $mapping |
|
63 | */ |
|
64 | private function mapQuery(SchemaContainer $schemaContainer, array $mapping) |
|
65 | { |
|
66 | $querySchema = $schemaContainer->getQuerySchema(); |
|
67 | if (null === $querySchema) { |
|
68 | $querySchema = new Query(); |
|
69 | $schemaContainer->setQuerySchema($querySchema); |
|
70 | } |
|
71 | ||
72 | $this->populateFieldContainer($querySchema, $mapping); |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @param SchemaContainer $schemaContainer |
|
@@ 79-88 (lines=10) @@ | ||
76 | * @param SchemaContainer $schemaContainer |
|
77 | * @param array $mapping |
|
78 | */ |
|
79 | private function mapMutation(SchemaContainer $schemaContainer, array $mapping) |
|
80 | { |
|
81 | $mutationSchema = $schemaContainer->getMutationSchema(); |
|
82 | if (null === $mutationSchema) { |
|
83 | $mutationSchema = new Query(); |
|
84 | $schemaContainer->setMutationSchema($mutationSchema); |
|
85 | } |
|
86 | ||
87 | $this->populateFieldContainer($mutationSchema, $mapping); |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @param SchemaContainer $schemaContainer |