Skip to content

Commit

Permalink
Update the local schema to match with remote schema
Browse files Browse the repository at this point in the history
  • Loading branch information
DimuthuMadushan committed Sep 21, 2023
1 parent b88a87f commit f7be93e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public void testGetInputTypeFieldsMap() throws ValidationException, CmdException
GraphQLSchema schema = projects.get(0).getGraphQLSchema();
List<String> generatedInputObjectTypes = SpecReader.getInputObjectTypeNames(schema);
List<String> expectedInputTypeFields = Arrays.asList("code StringQueryOperatorInput?",
"continent StringQueryOperatorInput?", "code StringQueryOperatorInput?",
"currency StringQueryOperatorInput?", "code StringQueryOperatorInput?", "nin string[]?",
"continent StringQueryOperatorInput?", "name StringQueryOperatorInput?",
"code StringQueryOperatorInput?", "currency StringQueryOperatorInput?",
"code StringQueryOperatorInput?", "nin string[]?",
"regex string?", "ne string?", "glob string?", "eq string?", "'in string[]?");
for (String generatedInputObjectType: generatedInputObjectTypes) {
Map<String, FieldType> generatedInputTypeFieldsMap =
Expand Down
1 change: 1 addition & 0 deletions graphql-cli/src/test/resources/expectedGenCode/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public type ContinentFilterInput record {
public type CountryFilterInput record {
StringQueryOperatorInput? continent?;
StringQueryOperatorInput? code?;
StringQueryOperatorInput? name?;
StringQueryOperatorInput? currency?;
};

Expand Down
1 change: 1 addition & 0 deletions graphql-cli/src/test/resources/specs/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ input CountryFilterInput {
code: StringQueryOperatorInput
continent: StringQueryOperatorInput
currency: StringQueryOperatorInput
name: StringQueryOperatorInput
}

input LanguageFilterInput {
Expand Down

0 comments on commit f7be93e

Please sign in to comment.