File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ func (sg *SchemaGenerator) buildQueriesFields(
89
89
}
90
90
}
91
91
92
- if len (keyspace .Tables ) == 0 {
92
+ if len (keyspace .Tables ) == 0 || len ( keyspace . Tables ) == len ( ksSchema . ignoredTables ) {
93
93
// graphql-go requires at least a single query and a single mutation
94
94
fields ["__keyspaceEmptyQuery" ] = & graphql.Field {
95
95
Description : "Placeholder query that is exposed when a keyspace is empty." ,
@@ -165,7 +165,7 @@ func (sg *SchemaGenerator) buildMutationFields(
165
165
}
166
166
}
167
167
168
- if len (keyspace .Tables ) == 0 {
168
+ if len (keyspace .Tables ) == 0 || len ( keyspace . Tables ) == len ( ksSchema . ignoredTables ) {
169
169
// graphql-go requires at least a single query and a single mutation
170
170
fields ["__keyspaceEmptyMutation" ] = & graphql.Field {
171
171
Description : "Placeholder mutation that is exposed when a keyspace is empty." ,
You can’t perform that action at this time.
0 commit comments