Skip to content

Commit 044b7e0

Browse files
committed
Suppress Introspection implement and stub concepts
1 parent 93b7f10 commit 044b7e0

File tree

14 files changed

+17
-963
lines changed

14 files changed

+17
-963
lines changed

include/graphqlservice/introspection/DirectiveObject.h

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,6 @@
1111
#include "IntrospectionSchema.h"
1212

1313
namespace graphql::introspection::object {
14-
namespace methods::DirectiveHas {
15-
16-
template <class TImpl>
17-
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
18-
{
19-
{ service::FieldResult<std::string> { impl.getName(std::move(params)) } };
20-
};
21-
22-
template <class TImpl>
23-
concept getName = requires (TImpl impl)
24-
{
25-
{ service::FieldResult<std::string> { impl.getName() } };
26-
};
27-
28-
template <class TImpl>
29-
concept getDescriptionWithParams = requires (TImpl impl, service::FieldParams params)
30-
{
31-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription(std::move(params)) } };
32-
};
33-
34-
template <class TImpl>
35-
concept getDescription = requires (TImpl impl)
36-
{
37-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription() } };
38-
};
39-
40-
template <class TImpl>
41-
concept getLocationsWithParams = requires (TImpl impl, service::FieldParams params)
42-
{
43-
{ service::FieldResult<std::vector<DirectiveLocation>> { impl.getLocations(std::move(params)) } };
44-
};
45-
46-
template <class TImpl>
47-
concept getLocations = requires (TImpl impl)
48-
{
49-
{ service::FieldResult<std::vector<DirectiveLocation>> { impl.getLocations() } };
50-
};
51-
52-
template <class TImpl>
53-
concept getArgsWithParams = requires (TImpl impl, service::FieldParams params)
54-
{
55-
{ service::FieldResult<std::vector<std::shared_ptr<InputValue>>> { impl.getArgs(std::move(params)) } };
56-
};
57-
58-
template <class TImpl>
59-
concept getArgs = requires (TImpl impl)
60-
{
61-
{ service::FieldResult<std::vector<std::shared_ptr<InputValue>>> { impl.getArgs() } };
62-
};
63-
64-
template <class TImpl>
65-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
66-
{
67-
{ impl.beginSelectionSet(params) };
68-
};
69-
70-
template <class TImpl>
71-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
72-
{
73-
{ impl.endSelectionSet(params) };
74-
};
75-
76-
} // namespace methods::DirectiveHas
7714

7815
class Directive
7916
: public service::Object

include/graphqlservice/introspection/EnumValueObject.h

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,6 @@
1111
#include "IntrospectionSchema.h"
1212

1313
namespace graphql::introspection::object {
14-
namespace methods::EnumValueHas {
15-
16-
template <class TImpl>
17-
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
18-
{
19-
{ service::FieldResult<std::string> { impl.getName(std::move(params)) } };
20-
};
21-
22-
template <class TImpl>
23-
concept getName = requires (TImpl impl)
24-
{
25-
{ service::FieldResult<std::string> { impl.getName() } };
26-
};
27-
28-
template <class TImpl>
29-
concept getDescriptionWithParams = requires (TImpl impl, service::FieldParams params)
30-
{
31-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription(std::move(params)) } };
32-
};
33-
34-
template <class TImpl>
35-
concept getDescription = requires (TImpl impl)
36-
{
37-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription() } };
38-
};
39-
40-
template <class TImpl>
41-
concept getIsDeprecatedWithParams = requires (TImpl impl, service::FieldParams params)
42-
{
43-
{ service::FieldResult<bool> { impl.getIsDeprecated(std::move(params)) } };
44-
};
45-
46-
template <class TImpl>
47-
concept getIsDeprecated = requires (TImpl impl)
48-
{
49-
{ service::FieldResult<bool> { impl.getIsDeprecated() } };
50-
};
51-
52-
template <class TImpl>
53-
concept getDeprecationReasonWithParams = requires (TImpl impl, service::FieldParams params)
54-
{
55-
{ service::FieldResult<std::optional<std::string>> { impl.getDeprecationReason(std::move(params)) } };
56-
};
57-
58-
template <class TImpl>
59-
concept getDeprecationReason = requires (TImpl impl)
60-
{
61-
{ service::FieldResult<std::optional<std::string>> { impl.getDeprecationReason() } };
62-
};
63-
64-
template <class TImpl>
65-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
66-
{
67-
{ impl.beginSelectionSet(params) };
68-
};
69-
70-
template <class TImpl>
71-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
72-
{
73-
{ impl.endSelectionSet(params) };
74-
};
75-
76-
} // namespace methods::EnumValueHas
7714

7815
class EnumValue
7916
: public service::Object

include/graphqlservice/introspection/FieldObject.h

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -11,93 +11,6 @@
1111
#include "IntrospectionSchema.h"
1212

1313
namespace graphql::introspection::object {
14-
namespace methods::FieldHas {
15-
16-
template <class TImpl>
17-
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
18-
{
19-
{ service::FieldResult<std::string> { impl.getName(std::move(params)) } };
20-
};
21-
22-
template <class TImpl>
23-
concept getName = requires (TImpl impl)
24-
{
25-
{ service::FieldResult<std::string> { impl.getName() } };
26-
};
27-
28-
template <class TImpl>
29-
concept getDescriptionWithParams = requires (TImpl impl, service::FieldParams params)
30-
{
31-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription(std::move(params)) } };
32-
};
33-
34-
template <class TImpl>
35-
concept getDescription = requires (TImpl impl)
36-
{
37-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription() } };
38-
};
39-
40-
template <class TImpl>
41-
concept getArgsWithParams = requires (TImpl impl, service::FieldParams params)
42-
{
43-
{ service::FieldResult<std::vector<std::shared_ptr<InputValue>>> { impl.getArgs(std::move(params)) } };
44-
};
45-
46-
template <class TImpl>
47-
concept getArgs = requires (TImpl impl)
48-
{
49-
{ service::FieldResult<std::vector<std::shared_ptr<InputValue>>> { impl.getArgs() } };
50-
};
51-
52-
template <class TImpl>
53-
concept getTypeWithParams = requires (TImpl impl, service::FieldParams params)
54-
{
55-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getType(std::move(params)) } };
56-
};
57-
58-
template <class TImpl>
59-
concept getType = requires (TImpl impl)
60-
{
61-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getType() } };
62-
};
63-
64-
template <class TImpl>
65-
concept getIsDeprecatedWithParams = requires (TImpl impl, service::FieldParams params)
66-
{
67-
{ service::FieldResult<bool> { impl.getIsDeprecated(std::move(params)) } };
68-
};
69-
70-
template <class TImpl>
71-
concept getIsDeprecated = requires (TImpl impl)
72-
{
73-
{ service::FieldResult<bool> { impl.getIsDeprecated() } };
74-
};
75-
76-
template <class TImpl>
77-
concept getDeprecationReasonWithParams = requires (TImpl impl, service::FieldParams params)
78-
{
79-
{ service::FieldResult<std::optional<std::string>> { impl.getDeprecationReason(std::move(params)) } };
80-
};
81-
82-
template <class TImpl>
83-
concept getDeprecationReason = requires (TImpl impl)
84-
{
85-
{ service::FieldResult<std::optional<std::string>> { impl.getDeprecationReason() } };
86-
};
87-
88-
template <class TImpl>
89-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
90-
{
91-
{ impl.beginSelectionSet(params) };
92-
};
93-
94-
template <class TImpl>
95-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
96-
{
97-
{ impl.endSelectionSet(params) };
98-
};
99-
100-
} // namespace methods::FieldHas
10114

10215
class Field
10316
: public service::Object

include/graphqlservice/introspection/InputValueObject.h

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,6 @@
1111
#include "IntrospectionSchema.h"
1212

1313
namespace graphql::introspection::object {
14-
namespace methods::InputValueHas {
15-
16-
template <class TImpl>
17-
concept getNameWithParams = requires (TImpl impl, service::FieldParams params)
18-
{
19-
{ service::FieldResult<std::string> { impl.getName(std::move(params)) } };
20-
};
21-
22-
template <class TImpl>
23-
concept getName = requires (TImpl impl)
24-
{
25-
{ service::FieldResult<std::string> { impl.getName() } };
26-
};
27-
28-
template <class TImpl>
29-
concept getDescriptionWithParams = requires (TImpl impl, service::FieldParams params)
30-
{
31-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription(std::move(params)) } };
32-
};
33-
34-
template <class TImpl>
35-
concept getDescription = requires (TImpl impl)
36-
{
37-
{ service::FieldResult<std::optional<std::string>> { impl.getDescription() } };
38-
};
39-
40-
template <class TImpl>
41-
concept getTypeWithParams = requires (TImpl impl, service::FieldParams params)
42-
{
43-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getType(std::move(params)) } };
44-
};
45-
46-
template <class TImpl>
47-
concept getType = requires (TImpl impl)
48-
{
49-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getType() } };
50-
};
51-
52-
template <class TImpl>
53-
concept getDefaultValueWithParams = requires (TImpl impl, service::FieldParams params)
54-
{
55-
{ service::FieldResult<std::optional<std::string>> { impl.getDefaultValue(std::move(params)) } };
56-
};
57-
58-
template <class TImpl>
59-
concept getDefaultValue = requires (TImpl impl)
60-
{
61-
{ service::FieldResult<std::optional<std::string>> { impl.getDefaultValue() } };
62-
};
63-
64-
template <class TImpl>
65-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
66-
{
67-
{ impl.beginSelectionSet(params) };
68-
};
69-
70-
template <class TImpl>
71-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
72-
{
73-
{ impl.endSelectionSet(params) };
74-
};
75-
76-
} // namespace methods::InputValueHas
7714

7815
class InputValue
7916
: public service::Object

include/graphqlservice/introspection/SchemaObject.h

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -11,81 +11,6 @@
1111
#include "IntrospectionSchema.h"
1212

1313
namespace graphql::introspection::object {
14-
namespace methods::SchemaHas {
15-
16-
template <class TImpl>
17-
concept getTypesWithParams = requires (TImpl impl, service::FieldParams params)
18-
{
19-
{ service::FieldResult<std::vector<std::shared_ptr<Type>>> { impl.getTypes(std::move(params)) } };
20-
};
21-
22-
template <class TImpl>
23-
concept getTypes = requires (TImpl impl)
24-
{
25-
{ service::FieldResult<std::vector<std::shared_ptr<Type>>> { impl.getTypes() } };
26-
};
27-
28-
template <class TImpl>
29-
concept getQueryTypeWithParams = requires (TImpl impl, service::FieldParams params)
30-
{
31-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getQueryType(std::move(params)) } };
32-
};
33-
34-
template <class TImpl>
35-
concept getQueryType = requires (TImpl impl)
36-
{
37-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getQueryType() } };
38-
};
39-
40-
template <class TImpl>
41-
concept getMutationTypeWithParams = requires (TImpl impl, service::FieldParams params)
42-
{
43-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getMutationType(std::move(params)) } };
44-
};
45-
46-
template <class TImpl>
47-
concept getMutationType = requires (TImpl impl)
48-
{
49-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getMutationType() } };
50-
};
51-
52-
template <class TImpl>
53-
concept getSubscriptionTypeWithParams = requires (TImpl impl, service::FieldParams params)
54-
{
55-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getSubscriptionType(std::move(params)) } };
56-
};
57-
58-
template <class TImpl>
59-
concept getSubscriptionType = requires (TImpl impl)
60-
{
61-
{ service::FieldResult<std::shared_ptr<Type>> { impl.getSubscriptionType() } };
62-
};
63-
64-
template <class TImpl>
65-
concept getDirectivesWithParams = requires (TImpl impl, service::FieldParams params)
66-
{
67-
{ service::FieldResult<std::vector<std::shared_ptr<Directive>>> { impl.getDirectives(std::move(params)) } };
68-
};
69-
70-
template <class TImpl>
71-
concept getDirectives = requires (TImpl impl)
72-
{
73-
{ service::FieldResult<std::vector<std::shared_ptr<Directive>>> { impl.getDirectives() } };
74-
};
75-
76-
template <class TImpl>
77-
concept beginSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
78-
{
79-
{ impl.beginSelectionSet(params) };
80-
};
81-
82-
template <class TImpl>
83-
concept endSelectionSet = requires (TImpl impl, const service::SelectionSetParams params)
84-
{
85-
{ impl.endSelectionSet(params) };
86-
};
87-
88-
} // namespace methods::SchemaHas
8914

9015
class Schema
9116
: public service::Object

0 commit comments

Comments
 (0)