File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ std::vector<std::shared_ptr<object::__Type>> Schema::getTypes() const
67
67
68
68
std::shared_ptr<object::__Type> Schema::getQueryType () const
69
69
{
70
- return _query;
70
+ return _query. lock () ;
71
71
}
72
72
73
73
std::shared_ptr<object::__Type> Schema::getMutationType () const
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Schema : public object::__Schema
41
41
std::vector<std::shared_ptr<object::__Directive>> getDirectives () const override ;
42
42
43
43
private:
44
- std::shared_ptr <ObjectType> _query;
44
+ std::weak_ptr <ObjectType> _query;
45
45
std::shared_ptr<ObjectType> _mutation;
46
46
std::shared_ptr<ObjectType> _subscription;
47
47
std::unordered_map<std::string, size_t > _typeMap;
You can’t perform that action at this time.
0 commit comments