private function schemaWithFieldType($type) { return ['query' => new ObjectType(['name' => 'Query', 'fields' => ['f' => ['type' => $type]]]), 'types' => [$type]]; }