Skip to content

Commit 835f9a0

Browse files
committed
Include fewer headers and rely on forward declaration in ...Schema.h
1 parent fdb5c9f commit 835f9a0

File tree

13 files changed

+26
-45
lines changed

13 files changed

+26
-45
lines changed

samples/learn/HeroData.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include "DroidData.h"
77
#include "HumanData.h"
88

9+
#include "CharacterObject.h"
10+
911
namespace graphql::learn {
1012

1113
std::shared_ptr<object::Character> make_hero(const SharedHero& hero) noexcept

samples/learn/schema/DroidObject.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
#include "StarWarsSchema.h"
1212

13-
#include "CharacterObject.h"
14-
1513
namespace graphql::learn::object {
1614
namespace implements {
1715

samples/learn/schema/HumanObject.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
#include "StarWarsSchema.h"
1212

13-
#include "CharacterObject.h"
14-
1513
namespace graphql::learn::object {
1614
namespace implements {
1715

samples/learn/schema/StarWarsSchema.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
// WARNING! Do not edit this file manually, your changes will be overwritten.
55

6-
#include "StarWarsObjects.h"
6+
#include "QueryObject.h"
7+
#include "MutationObject.h"
78

89
#include "graphqlservice/introspection/Introspection.h"
910

samples/today/separate/AppointmentObject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
#include "TodaySchema.h"
1212

13-
#include "NodeObject.h"
14-
#include "UnionTypeObject.h"
15-
1613
namespace graphql::today::object {
1714
namespace implements {
1815

samples/today/separate/FolderObject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
#include "TodaySchema.h"
1212

13-
#include "NodeObject.h"
14-
#include "UnionTypeObject.h"
15-
1613
namespace graphql::today::object {
1714
namespace implements {
1815

samples/today/separate/TaskObject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
#include "TodaySchema.h"
1212

13-
#include "NodeObject.h"
14-
#include "UnionTypeObject.h"
15-
1613
namespace graphql::today::object {
1714
namespace implements {
1815

samples/today/separate/TodaySchema.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
// WARNING! Do not edit this file manually, your changes will be overwritten.
55

6-
#include "TodayObjects.h"
6+
#include "QueryObject.h"
7+
#include "MutationObject.h"
8+
#include "SubscriptionObject.h"
79

810
#include "graphqlservice/introspection/Introspection.h"
911

samples/today/separate_nointrospection/AppointmentObject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
#include "TodaySchema.h"
1212

13-
#include "NodeObject.h"
14-
#include "UnionTypeObject.h"
15-
1613
namespace graphql::today::object {
1714
namespace implements {
1815

samples/today/separate_nointrospection/FolderObject.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
#include "TodaySchema.h"
1212

13-
#include "NodeObject.h"
14-
#include "UnionTypeObject.h"
15-
1613
namespace graphql::today::object {
1714
namespace implements {
1815

0 commit comments

Comments
 (0)